/* --- Google 字體導入 --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Noto+Sans+TC:wght@400;500;700&display=swap');

/* --- 主題顏色變數定義 --- */
:root {
  /* 預設：淺色主題 */
  --bg-color: #f0f4f9;
  --text-color: #28445e;
  --text-color-light: #666;
  --primary-color: #2b71d2;
  --primary-color-hover: #e8f3ff;
  --card-bg: #f9f9f9;
  --navbar-bg: white;
  --navbar-border: rgba(0, 0, 0, 0.08);
  --shadow-color: rgba(0,0,0,0.05);
  --hero-title-font: 'Noto Sans TC', sans-serif;
  --hero-title-size: 1.9rem;
  --hero-title-shadow: rgba(0,0,0,0.25);
  --section-bg: #fff;
  --card-border: transparent;
  --card-shadow-hover: rgba(0,0,0,0.1);
  --cta-text-color: white;
}

body.dark-theme {
  /* 黑金主題 */
  --bg-color: #121821;
  --text-color: #EAEAEA;
  --text-color-light: #999;
  --primary-color: #FFD700;
  --primary-color-hover: #ffec80;
  --card-bg: #1A222F;
  --navbar-bg: rgba(18, 24, 33, 0.8);
  --navbar-border: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0,0,0,0.2);
  --hero-title-font: 'Montserrat', 'Noto Sans TC', sans-serif;
  --hero-title-size: 2.2rem;
  --hero-title-shadow: rgba(0,0,0,0.5);
  --section-bg: #121821;
  --card-border: rgba(255, 255, 255, 0.1);
  --card-shadow-hover: rgba(255, 215, 0, 0.2);
  --cta-text-color: #121821;
}

/* --- 全局與基本樣式 --- */
body {
  margin: 0;
  font-family: 'Noto Sans TC', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}
body.menu-open {
  overflow: hidden;
}

/* --- 導覽列 Navbar --- */
.navbar {
  position: sticky; top: 0;
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
  padding: 8px 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px var(--shadow-color);
  border-bottom: 1px solid var(--navbar-border);
  z-index: 1000;
  transition: background-color 0.3s, border-color 0.3s;
}
.navbar .logo img { max-height: 40px; height: auto; }
.desktop-nav { display: flex; align-items: center; }
.desktop-nav a {
  display: inline-flex;
  align-items: center;
  margin: 0 12px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  padding: 8px 4px;
}
.desktop-nav a:hover { color: var(--primary-color); }
.desktop-nav a .nav-icon {
    margin-right: 6px;
}
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-actions a {
  color: var(--text-color);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.nav-icon {
  width: 22px; height: 22px;
  stroke: var(--text-color);
  transition: stroke 0.2s;
}
.nav-actions a:hover .nav-icon, .desktop-nav a:hover .nav-icon { 
    stroke: var(--primary-color); 
}

/* --- 漢堡選單 --- */
.hamburger-btn {
  display: none;
  background: none; border: none;
  padding: 0; margin: 0;
  cursor: pointer; z-index: 1002;
}
.hamburger-btn rect {
  fill: var(--text-color);
  transition: fill 0.2s;
}
.hamburger-btn:hover rect { fill: var(--primary-color); }
.side-menu {
  position: fixed; top: 0; right: 0;
  width: 280px; height: 100%;
  background: var(--navbar-bg);
  box-shadow: -4px 0 15px rgba(0,0,0,0.1);
  padding-top: 80px;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1001;
  display: flex;
  flex-direction: column;
}
.side-menu.active { transform: translateX(0); }
.side-menu a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 16px 24px;
  transition: color 0.2s, background-color 0.2s;
}
.side-menu a:hover {
  color: var(--primary-color);
  background-color: var(--primary-color-hover);
}
.menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}
.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- 響應式設計 --- */
@media screen and (max-width: 900px) {
  .desktop-nav { display: none; }
  .hamburger-btn { display: block; }
  .nav-actions .nav-text { display: none; }
}

/* --- Hero 區塊 --- */
.hero {
  position: relative; width: 100vw; height: 70vh;
  min-height: 400px; max-height: 680px;
  overflow: hidden; margin-bottom: 0; background: #222;
}
.yt-bg-wrapper, #ytPlayer, #ytPlayer > div, #ytPlayer iframe { position: absolute; width: 160vw !important; height: 130vh !important; left: 50%; top: 50%; transform: translate(-50%, -50%); border: none; pointer-events: none; z-index: 1; background: #222; }
#ytPlayer iframe { transform: scale(1.25); transform-origin: center; transition: transform 0.4s ease-in-out; }
#heroMask { position: absolute; inset: 0; background: #121821; opacity: 0; z-index: 3; pointer-events: none; transition: opacity 0.38s; }
#heroMask.show { opacity: 0.66; }
.hero-main-title { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #fff; z-index: 4; text-align: center; width: 100%; font-family: var(--hero-title-font); font-weight: 700; font-size: var(--hero-title-size); text-shadow: 0 2px 20px var(--hero-title-shadow); }
.hero-main-title p { font-size: 1.1rem; font-weight: 400; margin: 10px 0 0; color: #fff; text-shadow: 0 2px 16px var(--hero-title-shadow); }
.hero-caption { position: absolute; right: 32px; bottom: 32px; color: #fff; z-index: 10; padding: 10px 10px 8px 16px; opacity: 0; transform: translateY(60px); transition: opacity .7s, transform .7s; font-size: 0.94rem; display: flex; flex-direction: column; gap: 0.3em; text-align: right; }
.hero-caption.visible { opacity: 1; transform: translateY(0); }
.cap-title { font-size: 1em; font-weight: 700; color: #fff; letter-spacing: 1px; }
.cap-desc { font-size: 0.88em; color: #e9f6fd; font-weight: 400; }

/* --- 影片內容區塊 --- */
.video-section {
  background: var(--section-bg);
  padding: 60px 5%;
  margin-top: -40px;
  position: relative;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  transition: background-color 0.3s;
}

.topics-section {
  background: var(--section-bg);
  padding: 60px 5%;
  margin-top: 0;
  position: relative;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  transition: background-color 0.3s;
}

.latest-section {
  background: var(--section-bg);
  padding: 60px 5%;
  margin-top: 0;
  position: relative;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  transition: background-color 0.3s;
}

.info-section {
  background: var(--section-bg);
  padding: 60px 5%;
  margin-top: 0;
  position: relative;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  transition: background-color 0.3s;
}

.stats-section {
  background: var(--section-bg);
  padding: 60px 5%;
  margin-top: 0;
  position: relative;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  transition: background-color 0.3s;
}
.section-title-container { 
  display: flex !important; 
  justify-content: space-between !important; 
  align-items: center !important; 
  margin-bottom: 0 !important; /* 移除底部間距 */
  padding: 20px 25px 15px !important; /* 與現正播出區塊完全相同的內邊距 */
  max-width: none !important;
  min-height: auto !important;
  height: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.title-left {
  display: flex;
  align-items: center;
  gap: 8px; /* 與現正播出和即將播出標題相同的間距 */
}

.section-title-container h2 {
  font-family: var(--hero-title-font) !important;
  font-size: 1.4rem !important; /* 與現正播出標題相同的字體大小 */
  color: var(--text-color) !important; 
  margin: 0 !important;
  line-height: 1.2 !important; /* 與其他標題一致的行高 */
  padding: 0 !important;
  font-weight: 700 !important; /* 與其他標題相同的字體粗細 */
}

.section-title-container .title-icon { 
  width: 20px !important; /* 調整為與 emoji 圖標視覺大小一致 */
  height: 20px !important; 
  stroke: var(--primary-color) !important; 
}

.title-right {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 2px !important; /* 從 4px 減少到 2px，讓右側更緊湊 */
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(43, 113, 210, 0.2);
}

.view-all-btn:hover {
  background: var(--primary-color-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43, 113, 210, 0.3);
  text-decoration: none;
  color: white;
}

.view-all-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(43, 113, 210, 0.2);
}

/* 深色主題調整 */
body.dark-theme .view-all-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ffd700 100%);
  color: #121821;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

body.dark-theme .view-all-btn:hover {
  background: linear-gradient(135deg, #ffd700 0%, var(--primary-color) 100%);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
  color: #121821;
}

.current-datetime-text {
  font-size: 1.4rem !important; /* 與今日節目表相同的字體大小 */
  color: var(--text-color) !important;
  font-weight: 700 !important; /* 與今日節目表相同的字體粗細 */
  font-family: var(--hero-title-font) !important; /* 與今日節目表相同的字體 */
  display: flex !important;
  align-items: center !important;
  gap: 0 !important; /* 移除間距 */
  line-height: 1.2 !important; /* 與今日節目表相同的行高 */
  white-space: nowrap !important; /* 防止換行 */
}

/* 移除所有 flip-clock 樣式，簡化時間顯示 */
.video-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 24px; 
}

/* 響應式設計：確保在不同螢幕尺寸下都保持整齊的佈局 */
@media (max-width: 1200px) {
  .video-grid { 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
  }
}

@media (max-width: 900px) {
  .video-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 16px; 
  }
}

@media (max-width: 600px) {
  .video-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px; 
  }
}
.video-card {
  background: var(--card-bg);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow-color);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
  border: 1px solid var(--card-border);
  max-width: 100%; /* 防止卡片過度放大 */
  width: 100%; /* 確保卡片填滿網格單元 */
}
.video-card:hover { transform: translateY(-6px); box-shadow: 0 8px 30px var(--card-shadow-hover); }
.video-thumb img { width: 100%; height: 230px; object-fit: cover; display: block; }
.video-content { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; }
.video-tags { font-size: 1.0rem; color: var(--text-color-light); margin-bottom: 8px; font-weight: 500; }
.video-title { font-size: 1.05rem; font-weight: 600; color: var(--text-color); margin: 0 0 8px; }
.video-desc { font-size: 0.9rem; color: var(--primary-color); margin-bottom: 12px; }
.video-cta {
  display: inline-block; padding: 8px 16px;
  background: var(--primary-color);
  color: var(--cta-text-color);
  font-weight: 700; border-radius: 99px;
  font-size: 0.9rem; text-decoration: none;
  cursor: pointer; border: none; margin-top: auto;
  align-self: flex-start; transition: background-color 0.2s;
}
.video-cta:hover { background: var(--primary-color-hover); }


/* --- 節目表預告區塊 (樣式更新) --- */
.schedule-section {
  padding: 40px 5% 60px;
  background: var(--bg-color);
  transition: background-color 0.3s;
}
.schedule-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.schedule-card {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}
.schedule-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px var(--card-shadow-hover);
}
.schedule-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.schedule-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
}
.schedule-card-time {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.schedule-card-title {
  font-size: 1rem;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
/* 節目表CTA按鈕（優化版） - 滿版寬度 */
.section-cta-container {
  text-align: center;
  margin-top: -10px !important; /* 使用負值讓按鈕往上移動 */
  position: relative;
  padding: 0 4%;
  transform: translateY(-20px) !important; /* 使用 transform 進一步往上移動 */
}

/* 移除按鈕上方的裝飾線條 */
/* .section-cta-container::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
  opacity: 0.6;
} */

.section-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #4a90e2 100%);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 25px rgba(43, 113, 210, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.section-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  transition: left 0.6s ease;
}

.section-cta-btn:hover {
  background: linear-gradient(135deg, #4a90e2 0%, var(--primary-color) 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 12px 35px rgba(43, 113, 210, 0.4),
    0 6px 20px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.section-cta-btn:hover::before {
  left: 100%;
}

.section-cta-btn:active {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 
    0 6px 20px rgba(43, 113, 210, 0.3),
    0 3px 10px rgba(0, 0, 0, 0.1);
}

.section-cta-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform 0.3s ease;
}

.section-cta-btn:hover svg {
  transform: translateX(4px);
}

/* 深色主題調整 */
/* 移除深色主題中的裝飾線條 */
/* body.dark-theme .section-cta-container::before {
  background: linear-gradient(90deg, transparent 0%, #ffd700 50%, transparent 100%);
} */

body.dark-theme .section-cta-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ffd700 100%);
  color: #121821;
  box-shadow: 
    0 8px 25px rgba(255, 215, 0, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: rgba(18, 24, 33, 0.2);
}

body.dark-theme .section-cta-btn:hover {
  background: linear-gradient(135deg, #ffd700 0%, var(--primary-color) 100%);
  box-shadow: 
    0 12px 35px rgba(255, 215, 0, 0.4),
    0 6px 20px rgba(0, 0, 0, 0.25);
  border-color: rgba(18, 24, 33, 0.3);
}

/* 響應式設計 - CTA 按鈕 */
@media (max-width: 768px) {
  .section-cta-container {
    margin-top: -5px !important; /* 使用負值讓按鈕往上移動 */
    padding: 0 3%;
    transform: translateY(-15px) !important; /* 使用 transform 進一步往上移動 */
  }
  
  .section-cta-btn {
    padding: 14px 28px;
    font-size: 1rem;
  }
  
  .section-cta-btn svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .section-cta-container {
    margin-top: -8px !important; /* 使用負值讓按鈕往上移動 */
    padding: 0 3%;
    transform: translateY(-20px) !important; /* 使用 transform 進一步往上移動 */
  }
  
  .section-cta-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    gap: 10px;
  }
  
  .section-cta-btn svg {
    width: 16px;
    height: 16px;
  }
}


/* --- 全螢幕播放器 --- */
.fullscreen-player { position: fixed; inset: 0; background: #000; display: none; align-items: center; justify-content: center; z-index: 9999; }
.fullscreen-player.active { display: flex; }
.fullscreen-player iframe { width: 100vw; height: 100vh; border: none; }
.close-player-btn {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px;
  background: rgba(0, 0, 0, 0.5); color: white;
  border: 2px solid white; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-family: sans-serif; line-height: 1;
  z-index: 10000;
  transition: transform 0.2s, background-color 0.2s;
}
.close-player-btn:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.1); }
.close-player-btn:hover { 
  background: rgba(255, 255, 255, 0.2); 
  transform: scale(1.1); 
}

/* --- 洲別導覽區塊：拉寬到版面 90% 並置中 --- */
.continent-nav {
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}
/* === 七大洲導覽（橫向滑動 + 基線對齊 + 容器不冒出直向捲軸） === */
.continent-menu{
  position: sticky; top: 64px;
  z-index: 20;
  display:block;
  padding:10px 0 14px;
  background: var(--bg-color);
  border-bottom:1px solid var(--navbar-border, rgba(0,0,0,.08));
  overflow-x:auto;
  overflow-y:hidden;                 /* 防 ::after 造成直向捲動 */
  -webkit-overflow-scrolling:touch;
  white-space:nowrap;                /* 避免子項換行 */
  box-sizing:border-box;
  /* 兩側淡出（美觀，不影響捲動） */
  mask-image: linear-gradient(to right, transparent 0, black 12px, black calc(100% - 12px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 12px, black calc(100% - 12px), transparent 100%);
}

/* 內層軌道：所有洲按鈕與分隔線都放這裡（一定要有） */
.continent-track{
  display:inline-flex; align-items:center; gap:0;
  width:max-content;
  margin:0 auto;
  padding:0 8px;
}

/* 洲按鈕 */
.continent-item{
  appearance:none; background:none; border:0; cursor:pointer;
  display:flex; align-items:center; gap:10px;
  padding:10px 18px; margin:0;
  text-align:center;
  line-height:1.1; position:relative;
  flex:0 0 auto; transition: color .2s ease;
  -webkit-tap-highlight-color: transparent;
  color: var(--text-color);
}
.continent-item .icon{
  width:20px; height:20px; flex:0 0 auto;
  stroke: currentColor; fill: none; stroke-width:1.5px;
  color: var(--text-color-light);
  display:block;                     /* 避免 SVG baseline 位移 */
}
.continent-item .label{ display:flex; flex-direction:column; align-items:center; }
.continent-item .label .zh{ font-weight:900; font-size:16px; color:var(--text-color); letter-spacing:.02em; }
.continent-item .label .en{ font-size:12px; color:var(--text-color-light); margin-top:2px; }

/* 分隔線（桌面顯示，手機隱藏） */
.divider{
  width:1px; height:26px; background:var(--navbar-border, rgba(0,0,0,.08)); margin:0 2px;
  flex:0 0 auto; align-self:center;
}
@media (max-width:900px){ .divider{ display:none; } }

/* hover/active 底線（保持在容器內） */
.continent-item::after{
  content:""; position:absolute; left:18px; right:18px; bottom:0;
  height:2px; background: var(--primary-color); border-radius:2px;
  transform:scaleX(0); transform-origin:center; transition:transform .18s ease-out;
}
.continent-item:hover{
  color: var(--primary-color);
}
.continent-item:hover .label .zh,
.continent-item:hover .label .en{
  color: var(--primary-color);
}
.continent-item:hover::after{ transform:scaleX(1); }

.continent-item.active{
  color: var(--primary-color); background: transparent;
}
.continent-item.active .label .zh,
.continent-item.active .label .en{
  color: var(--primary-color);
}
.continent-item.active::after{ transform:scaleX(1); }

/* 深色主題微調：沿用你的變數即可 */
body.dark-theme .continent-menu{ border-bottom-color: var(--navbar-border); }
body.dark-theme .divider{ background: var(--navbar-border); }
body.dark-theme .continent-item .label .en{ color: var(--text-color-light); }


/* --- TLC 風格節目時間表樣式 - 滿版寬度 --- */
.schedule-section {
  padding: 20px 0 !important; /* 從 40px 0 減少到 20px 0 */
  background: var(--section-bg);
  position: relative;
  width: 100%;
}

.schedule-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
  opacity: 0.3;
}

/* TLC 風格容器 - 滿版寬度 */
.tlc-schedule-container {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--card-bg);
  border-radius: 0;
  overflow: visible; /* 改為 visible，讓按鈕可以顯示 */
  box-shadow: none;
  border: none;
  min-height: 900px;
  height: 900px; /* 調整為適應右側更高的區域 */
}

/* 左側現正播出區域 - 固定高度 */
.now-playing-area {
  padding: 0;
  background: var(--card-bg);
  height: 800px; /* 固定高度 */
  overflow: hidden; /* 防止內容溢出 */
  display: flex;
  flex-direction: column;
}

.now-playing-header {
  padding: 12px 25px 8px; /* 縮小上下內邊距 */
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.8) 0%, rgba(238, 90, 82, 0.8) 50%, rgba(231, 76, 60, 0.8) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  box-shadow: 0 2px 10px rgba(231, 76, 60, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.now-playing-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-indicator {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  animation: pulse 2s infinite;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.now-playing-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.now-playing-thumbnail {
  position: relative;
  width: 100%;
  height: 450px; /* 從 400px 增加到 450px，上下放大 */
  overflow: hidden;
  background: #000;
}

.now-playing-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.now-playing-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.now-playing-time {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  align-self: flex-start;
  backdrop-filter: blur(10px);
}

.now-playing-status {
  background: linear-gradient(135deg, #ff6b6b 0%, #e74c3c 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 600;
  align-self: flex-start;
  animation: pulse 2s infinite;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.now-playing-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(231, 76, 60, 0.9);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.now-playing-play-button:hover {
  background: #e74c3c;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 35px rgba(231, 76, 60, 0.6);
}

.now-playing-play-button svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
}

.now-playing-content {
  padding: 25px;
  background: var(--card-bg);
  flex: 1; /* 允許自動擴展 */
  min-height: auto; /* 改為自動高度，讓內容決定高度 */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 改回 flex-start */
}

.now-playing-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap; /* 允許換行 */
}

.now-playing-title {
  font-size: 2.2rem; /* 放大字體 */
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  line-height: 1.3;
  flex: 1;
}

.now-playing-title-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.now-playing-status-badge {
  background: #3498db;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 15px;
  flex-shrink: 0;
}

.now-playing-description {
  font-size: 1.3rem; /* 放大字體 */
  color: var(--text-color-light);
  line-height: 1.6;
  margin: 0 0 15px 0; /* 減少底部間距 */
  flex: none; /* 改為不自動擴展，讓文字自然顯示 */
  overflow: visible; /* 移除滾動，讓文字完整顯示 */
}

.now-playing-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px; /* 減少頂部間距 */
  min-height: auto; /* 移除最小高度限制 */
  flex-wrap: wrap;
}

.now-playing-duration {
  background: var(--primary-color);
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 600;
}

.now-playing-category {
  background: #3498db;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.now-playing-topics {
  display: flex !important; /* 強制顯示 */
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px; /* 改為固定間距 */
  margin-bottom: 0;
  min-height: 30px;
  flex-shrink: 0; /* 防止被壓縮 */
  /* 移除調試用的背景和邊框 */
}

/* 右側即將播出節目列表區域 - 不同高度 */
.upcoming-programs-area {
  background: var(--card-bg);
  border-left: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  height: 900px; /* 比左側高 100px */
  max-height: none;
  overflow: visible; /* 改為 visible，讓按鈕可以顯示 */
}

.upcoming-programs-header {
  padding: 12px 25px 8px; /* 縮小上下內邊距 */
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.8) 0%, rgba(53, 122, 189, 0.8) 50%, rgba(41, 128, 185, 0.8) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  box-shadow: 0 2px 10px rgba(52, 152, 219, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.upcoming-programs-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.upcoming-count {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 10px;
}

.upcoming-programs-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(52, 152, 219, 0.3) transparent;
  max-height: calc(100% - 90px);
}

/* 自定義捲動條樣式 */
.upcoming-programs-list::-webkit-scrollbar {
  width: 6px;
}

.upcoming-programs-list::-webkit-scrollbar-track {
  background: transparent;
}

.upcoming-programs-list::-webkit-scrollbar-thumb {
  background: rgba(52, 152, 219, 0.3);
  border-radius: 3px;
}

.upcoming-programs-list::-webkit-scrollbar-thumb:hover {
  background: rgba(52, 152, 219, 0.5);
}

.upcoming-program-item {
  display: flex;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: var(--card-bg);
  min-height: auto !important;
  height: auto !important;
  flex: 1;
}

.upcoming-program-item:hover {
  background: var(--primary-color-hover);
  transform: translateX(5px);
}

.upcoming-program-item:last-child {
  border-bottom: 2px solid rgba(0, 0, 0, 0.15);
}

.upcoming-program-item.next {
  background: linear-gradient(90deg, rgba(52, 152, 219, 0.1) 0%, transparent 100%);
  border-left: 3px solid #3498db;
}

.upcoming-program-item.next::before {
  content: "";
  display: none;
}

.upcoming-program-thumbnail {
  width: 270px;
  height: 152px;
  border-radius: 12px;
  overflow: hidden;
  margin-right: 30px;
  flex-shrink: 0;
  position: relative;
  align-self: center;
  background: #000;
}

/* 簡化 img 樣式 */
.upcoming-program-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.upcoming-program-time-overlay {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}

.upcoming-program-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.upcoming-program-title {
  font-size: 1.3rem !important;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 4px 0 !important;
  line-height: 1.2 !important;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: none !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
}

.upcoming-program-description {
  font-size: 1.0rem !important;
  color: var(--text-color-light);
  line-height: 1.3 !important;
  margin: 0 0 6px 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: none !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
}

.upcoming-program-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.2rem;
}

.upcoming-program-duration {
  color: var(--text-color-light);
  background: var(--primary-color-hover);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
}

.upcoming-program-category {
  color: #3498db;
  font-weight: 500;
}

.upcoming-program-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.topic-tag {
  background: #3498db;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 1.5rem; /* 增大字體大小 */
  font-weight: 600;
  border: none;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
  transition: all 0.2s ease;
}

/* 右側即將播出區域的標籤字體適中大小 */
.upcoming-program-topics .topic-tag {
  font-size: 1.1rem; /* 增大字體大小 */
  padding: 6px 12px; /* 相應調整內邊距 */
}

.topic-tag:hover {
  background: #2980b9;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

/* 響應式設計 - 滿版寬度 */
@media (max-width: 1200px) {
  .tlc-schedule-container {
    grid-template-columns: 3fr 2fr;
    gap: 0;
    height: 900px;
  }
  
  .upcoming-programs-area {
    max-height: none;
  }
  
  .now-playing-thumbnail {
    height: 400px; /* 從 350px 增加到 400px */
  }
  
  .now-playing-title {
    font-size: 1.6rem;
  }
  
  .now-playing-status-badge {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
}

@media (max-width: 900px) {
  .tlc-schedule-container {
    grid-template-columns: 1fr;
    gap: 0;
    height: auto;
    min-height: 900px;
  }
  
  .upcoming-programs-area {
    border-left: none;
    border-top: 1px solid var(--card-border);
    max-height: none;
  }
  
  .now-playing-thumbnail {
    height: 400px; /* 從 350px 增加到 400px */
  }
  
  .now-playing-title {
    font-size: 1.4rem;
  }
  
  .now-playing-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .now-playing-status-badge {
    margin-left: 0;
    font-size: 0.7rem;
    padding: 4px 8px;
  }
  
  .upcoming-program-item {
    padding: 12px 15px;
  }
  
  .upcoming-program-thumbnail {
    width: 225px;
    height: 100%;
  }
}

@media (max-width: 600px) {
  .schedule-section {
    padding: 10px 0 !important; /* 進一步減少響應式設計中的內邊距 */
  }
  
  .section-title-container {
    padding: 20px 25px 15px !important; /* 與現正播出區塊完全相同的內邊距 */
  }
  
  .tlc-schedule-container {
    height: auto;
    min-height: 700px;
  }
  
  .upcoming-programs-area {
    max-height: 350px;
  }
  
  .now-playing-thumbnail {
    height: 350px; /* 從 300px 增加到 350px */
  }
  
  .now-playing-content {
    padding: 20px;
    min-height: auto; /* 確保響應式設計中也使用自動高度 */
  }
  
  .now-playing-title {
    font-size: 1.2rem;
  }
  
  .now-playing-play-button {
    width: 60px;
    height: 60px;
  }
  
  .now-playing-play-button svg {
    width: 24px;
    height: 24px;
  }
  
  .upcoming-programs-header {
    padding: 12px 20px 8px; /* 縮小上下內邊距 */
  }
  
  .upcoming-program-item {
    padding: 10px 15px;
  }
  
  .upcoming-program-thumbnail {
    width: 180px;
    height: 100%;
  }
  
  .upcoming-program-title {
    font-size: 0.85rem;
  }
}



/* 橫幅節目表容器 */
.schedule-container {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 8px 32px var(--shadow-color),
    0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--card-border);
  position: relative;
}

.schedule-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color) 0%, #4a90e2 50%, var(--primary-color) 100%);
}

/* 節目表導航箭頭 - 極簡美觀設計 */
.schedule-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
}

.schedule-container:hover .schedule-nav-arrow {
  opacity: 1;
  pointer-events: auto;
}

.schedule-nav-arrow:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.15);
}

.schedule-nav-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.schedule-nav-arrow.left {
  left: -24px;
}

.schedule-nav-arrow.right {
  right: -24px;
}

.schedule-nav-arrow svg {
  width: 20px;
  height: 20px;
  fill: #333;
  transition: all 0.3s ease;
}

.schedule-nav-arrow:hover svg {
  fill: #000;
  transform: scale(1.1);
}

/* 箭頭禁用狀態 */
.schedule-nav-arrow.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(200, 200, 200, 0.8);
}

.schedule-nav-arrow.disabled svg {
  fill: #999;
}

/* 深色主題箭頭調整 */
body.dark-theme .schedule-nav-arrow {
  background: linear-gradient(135deg, var(--primary-color) 0%, #FFD700 100%);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 6px 20px rgba(255, 215, 0, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.dark-theme .schedule-nav-arrow:hover {
  background: linear-gradient(135deg, #FFD700 0%, var(--primary-color) 100%);
  box-shadow: 
    0 10px 30px rgba(255, 215, 0, 0.4),
    0 6px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
}

body.dark-theme .schedule-nav-arrow svg {
  fill: #121821;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

body.dark-theme .schedule-nav-arrow:hover svg {
  fill: #121821;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

body.dark-theme .schedule-nav-arrow.disabled {
  background: linear-gradient(135deg, #444 0%, #666 100%);
  border-color: rgba(255, 255, 255, 0.05);
}

body.dark-theme .schedule-nav-arrow.disabled svg {
  fill: #999;
}

/* 橫向滾動的節目列表 */
.schedule-list {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 20px;
  gap: 16px;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.schedule-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* 極簡節目卡片樣式 */
.schedule-item {
  flex: 0 0 300px; /* 恢復普通卡片寬度為 300px */
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.schedule-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.schedule-item.current {
  border-left: 3px solid #e74c3c;
  background: rgba(231, 76, 60, 0.02);
  transform: scale(1.01);
  flex: 0 0 900px; /* 現正播出卡片寬度為普通卡片的三倍 (300px × 3) */
  height: 580px; /* 增加卡片總高度以配合增加的圖片高度 */
  position: relative; /* 回復為相對定位 */
}

.schedule-item.current::after {
  content: "現正播出" !important;
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  color: white !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  background: #e74c3c !important;
  padding: 3px 6px !important;
  border-radius: 4px !important;
  animation: pulse-dot 2s infinite !important;
  z-index: 10 !important;
  display: block !important;
}

.schedule-item.upcoming {
  border-left: 3px solid transparent;
  opacity: 0.9;
}

.schedule-item.upcoming:hover {
  opacity: 1;
}

/* 節目狀態標籤 */
.program-status {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 16px;
  z-index: 3;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* 節目縮圖區域 */
.schedule-thumbnail {
  position: relative;
  width: 100% !important;
  height: 180px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  display: block !important;
}

/* 現正播出卡片的縮圖區域 - 放大版但保持原格式 */
.schedule-item.current .schedule-thumbnail {
  height: 400px; /* 增加圖片高度，讓圖片露出更多 */
  border-radius: 12px 12px 0 0; /* 保持原來的圓角 */
  width: 100% !important; /* 強制設定寬度 */
}

/* 現正播出卡片的圖片設定 */
.schedule-item.current .schedule-thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* 改回 cover 避免左右白邊 */
  display: block !important;
  object-position: center 60%; /* 調整圖片位置，讓上下都露出更多內容 */
}

.schedule-thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease;
  display: block !important;
}

.schedule-item:hover .schedule-thumbnail img {
  transform: scale(1.05);
}

/* 節目時間（極簡樣式） */
.schedule-time {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
}

/* 首播徽章（極簡樣式） */
.premiere-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #f39c12;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 500;
  z-index: 2;
}

/* 特別節目徽章（極簡樣式） */
.special-badge {
  position: absolute;
  top: 28px;
  right: 8px;
  background: #e74c3c;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 500;
  z-index: 2;
}

/* 極簡風格的節目狀態指示 */
.schedule-item {
  position: relative;
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

/* 現正播放節目的極簡樣式 */
.schedule-item.current {
  transform: scale(1.02);
  border-left: 3px solid #e74c3c;
  background: rgba(231, 76, 60, 0.02);
}

/* 移除重複的 ::after 規則，使用上面的 "現正播出" 標籤 */

/* 即將播出節目的樣式 */
.schedule-item.upcoming {
  border-left: 3px solid transparent;
  opacity: 0.9;
}

.schedule-item.upcoming:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 隱藏原有的徽章 */
.upcoming-badge {
  display: none !important;
}

/* 現正播出徽章樣式 */
.now-playing-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #e74c3c;
  color: white;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
  z-index: 10;
  display: block !important;
}

/* 簡化的動畫效果 */
@keyframes pulse-dot {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
  }
  50% { 
    opacity: 0.8; 
    transform: scale(1.05);
  }
}

/* 節目內容區域（極簡樣式） */
.schedule-content {
  padding: 12px;
}

/* 現正播出卡片的內容佈局調整 - 保持原格式但放大 */
.schedule-item.current .schedule-content {
  padding: 10px 16px; /* 進一步減少內邊距，讓白色區塊更小 */
  position: relative; /* 改為相對定位，保持原格式 */
  background: white; /* 保持白色背景 */
  color: #333; /* 改回深色文字 */
  border-radius: 0 0 12px 12px;
  display: block !important; /* 強制顯示文字內容 */
}

/* 節目標題 */
.program-title {
  font-size: 1rem;
  font-weight: 600;
}

/* 現正播出卡片的標題樣式 - 保持原格式但放大 */
.schedule-item.current .program-title {
  font-size: 1.8rem; /* 再放大兩級字體 */
  font-weight: 700;
  color: #333 !important; /* 改回深色文字 */
  text-shadow: none; /* 移除文字陰影 */
  margin-bottom: 4px; /* 進一步減少底部間距 */
  display: block !important;
}

/* 現正播出卡片的描述樣式 - 保持原格式但放大 */
.schedule-item.current .program-description {
  color: #666 !important; /* 改回深色文字 */
  font-size: 1.3rem; /* 再放大兩級字體 */
  text-shadow: none; /* 移除文字陰影 */
  margin-bottom: 6px; /* 進一步減少底部間距 */
  display: block !important;
}

/* 現正播出卡片的元數據樣式 */
.schedule-item.current .schedule-meta {
  display: flex !important;
  align-items: center;
  gap: 6px; /* 減少間距 */
}

.schedule-item.current .program-category {
  background: #007bff !important; /* 改回藍色背景 */
  color: white !important;
  padding: 4px 12px; /* 減少內邊距 */
  border-radius: 12px;
  font-size: 0.9rem; /* 放大字體 */
  font-weight: 500;
  display: inline-block !important;
}

.schedule-item.current .schedule-duration {
  color: #666 !important; /* 改回深色文字 */
  font-size: 0.9rem; /* 放大字體 */
  font-weight: 500;
  display: inline-block !important;
}
  color: var(--text-color);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 移除重複的標題樣式規則 */

/* 節目描述 */
.program-description {
  font-size: 0.8rem;
  color: var(--text-color-light);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 現正播出卡片的描述樣式 */
.schedule-item.current .program-description {
  font-size: 0.9rem; /* 稍大的字體 */
  margin-bottom: 12px;
  -webkit-line-clamp: 3; /* 允許更多行 */
}

/* 節目元數據區域 */
.schedule-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

/* 現正播出卡片的元數據樣式 */
.schedule-item.current .schedule-meta {
  gap: 12px; /* 增加間距 */
}

/* 節目分類 */
.program-category {
  font-size: 0.7rem;
  color: #6c757d;
  background: #f8f9fa;
  padding: 3px 6px;
  border-radius: 4px;
  font-weight: 500;
  border: 1px solid #e9ecef;
  flex-shrink: 0;
}

/* 現正播出卡片的分類樣式 */
.schedule-item.current .program-category {
  font-size: 0.8rem; /* 稍大的字體 */
  padding: 6px 12px; /* 增加內邊距 */
  font-weight: 600; /* 更粗的字體 */
}

/* 節目時長 */
.schedule-duration {
  font-size: 0.75rem;
  color: var(--text-color-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

/* 現正播出卡片的時長樣式 */
.schedule-item.current .schedule-duration {
  font-size: 0.85rem; /* 稍大的字體 */
  font-weight: 600; /* 更粗的字體 */
}

.schedule-duration::before {
  content: '⏱';
  font-size: 0.65rem;
}

/* 滾動指示器 */
.schedule-scroll-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  opacity: 0.6;
}

.scroll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-color-light);
  transition: all 0.3s ease;
  cursor: pointer;
}

.scroll-dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* 深色主題調整 - 簡化時間顯示 */
body.dark-theme .current-datetime-text {
  color: var(--text-color);
}

body.dark-theme .schedule-item.current {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.08) 100%);
  border-color: var(--primary-color);
  border-width: 2px;
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
  transform: scale(1.05);
}

body.dark-theme .schedule-item.current::before {
  background: linear-gradient(90deg, var(--primary-color) 0%, #ff6b6b 50%, var(--primary-color) 100%);
}

body.dark-theme .schedule-item.current::after {
  color: var(--cta-text-color);
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
}

/* 深色主題下的即將播出節目樣式 */
body.dark-theme .schedule-item.next {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 215, 0, 0.04) 100%);
  border-color: #ffd700;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.25);
}

body.dark-theme .schedule-item.next .program-status {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.4);
}

body.dark-theme .schedule-item:hover {
  background: rgba(255, 215, 0, 0.05);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.2);
}

body.dark-theme .schedule-item:hover .program-title {
  color: #ffd700;
}

body.dark-theme .program-category {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.2);
}

body.dark-theme .schedule-item:hover .program-category {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.3);
}

/* ===== 節目表頁面專用樣式 ===== */

/* 週節目表導覽 */
.week-navigation {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  margin: 20px 5% 30px;
  box-shadow: 0 4px 20px var(--shadow-color);
  border: 1px solid var(--card-border);
}

.week-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto;
}

.week-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--primary-color);
  color: var(--cta-text-color);
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.week-nav-btn:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.week-nav-btn:active {
  transform: translateY(0);
}

.week-nav-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.week-display {
  text-align: center;
  flex: 1;
  margin: 0 20px;
}

.week-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 4px;
}

.week-date {
  display: block;
  font-size: 0.9rem;
  color: var(--text-color-light);
  font-weight: 500;
}

/* 週節目表容器 */
.weekly-schedule {
  background: var(--card-bg);
  border-radius: 16px;
  margin: 0 5% 40px;
  box-shadow: 0 4px 20px var(--shadow-color);
  border: 1px solid var(--card-border);
  overflow: hidden;
}

/* 節目表標籤頁 */
.schedule-tabs {
  display: flex;
  background: var(--section-bg);
  border-bottom: 1px solid var(--card-border);
  overflow-x: auto;
}

.schedule-tab {
  flex: 1;
  min-width: 120px;
  padding: 16px 12px;
  background: transparent;
  border: none;
  color: var(--text-color-light);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  position: relative;
}

.schedule-tab:hover {
  background: rgba(255, 215, 0, 0.1);
  color: var(--text-color);
}

.schedule-tab.active {
  color: var(--primary-color);
  background: var(--card-bg);
  border-bottom-color: var(--primary-color);
}

.schedule-tab.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), #ff6b6b);
}

/* 節目表內容區域 */
.schedule-content {
  padding: 0;
  min-height: 400px;
}

.schedule-day-content {
  padding: 30px;
}

/* 節目表空狀態 */
.schedule-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-color-light);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.6;
}

.schedule-empty h3 {
  font-size: 1.5rem;
  margin: 0 0 10px 0;
  color: var(--text-color);
  font-weight: 600;
}

.schedule-empty p {
  font-size: 1rem;
  margin: 0;
  opacity: 0.8;
  line-height: 1.6;
}

/* 節目表列表樣式 */
.schedule-header {
  display: grid;
  grid-template-columns: 100px 1fr 80px;
  gap: 20px;
  padding: 16px 20px;
  background: var(--section-bg);
  border-bottom: 1px solid var(--card-border);
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.9rem;
}

/* 節目表頁面專用的兩列排列樣式 - 僅在 schedule.html 頁面使用 */
.schedule-page .schedule-list {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 24px !important;
  padding: 20px !important;
  max-width: 1400px;
  margin: 0 auto;
  overflow: visible !important;
}

/* 節目表頁面專用的網格樣式 - 僅在 schedule.html 頁面使用 */
.schedule-page .schedule-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  cursor: pointer;
  width: 100% !important;
  flex: none !important;
}

.schedule-page .schedule-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.schedule-page .schedule-thumbnail {
  position: relative !important;
  width: 100% !important;
  height: 160px !important;
  overflow: hidden;
  flex: none !important;
}

.schedule-page .schedule-thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease;
}

.schedule-page .schedule-item:hover .schedule-thumbnail img {
  transform: scale(1.05);
}

.schedule-page .schedule-time {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  background: rgba(0, 0, 0, 0.8) !important;
  color: white !important;
  padding: 6px 12px !important;
  border-radius: 20px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  backdrop-filter: blur(10px);
}

.schedule-page .schedule-content {
  padding: 16px !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.schedule-page .program-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--text-color) !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.schedule-page .program-description {
  font-size: 0.85rem !important;
  color: var(--text-color-light) !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.schedule-page .schedule-meta {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-top: auto !important;
  gap: 8px !important;
  margin-top: 8px !important;
}

.schedule-page .program-category {
  background: var(--primary-color) !important;
  color: white !important;
  padding: 4px 10px !important;
  border-radius: 16px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  flex-shrink: 0 !important;
}

.schedule-page .schedule-duration {
  color: var(--text-color-light) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.schedule-page .schedule-duration::before {
  content: '⏱' !important;
  font-size: 0.7rem !important;
}

.schedule-page .program-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 8px !important;
}

.schedule-page .program-tags .tag {
  background: var(--section-bg) !important;
  color: var(--text-color) !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  border: 1px solid var(--card-border) !important;
}
  gap: 20px;
  padding: 0;
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: var(--card-bg);
  border-radius: 12px;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  height: 200px;
  overflow: hidden;
}

/* 節目表頁面專用的懸停樣式 - 僅在 schedule.html 頁面使用 */
.schedule-page .schedule-item:hover {
  background: var(--section-bg);
  transform: translateX(4px);
}

/* 節目表頁面專用的縮圖樣式 */
.schedule-page .schedule-thumbnail {
  flex: 0 0 320px;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.schedule-page .schedule-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.schedule-page .schedule-item:hover .schedule-thumbnail img {
  transform: scale(1.05);
}

.schedule-page .schedule-thumbnail .schedule-time {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* 節目表頁面專用的內容樣式 */
.schedule-page .schedule-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 20px 24px 20px 0;
  height: 100%;
}

.schedule-page .program-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.schedule-page .program-description {
  font-size: 0.9rem;
  color: var(--text-color-light);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.schedule-page .schedule-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.schedule-page .program-category {
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.schedule-page .schedule-duration {
  color: var(--text-color-light);
  font-size: 0.9rem;
  font-weight: 500;
}

/* 節目表頁面專用的標籤樣式 */
.schedule-page .program-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.schedule-page .program-tags .tag {
  background: #3498db;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-block;
}

.schedule-page .program-status {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #28a745;
  color: white;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* 節目表頁面專用的當前節目樣式 - 僅在 schedule.html 頁面使用 */
.schedule-page .schedule-item.current {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
  border-left: 4px solid var(--primary-color);
  transform: translateX(8px);
}

/* 節目表頁面專用的下一個節目樣式 - 僅在 schedule.html 頁面使用 */
.schedule-page .schedule-item.next {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 215, 0, 0.02) 100%);
  border-left: 4px solid #ffd700;
}

/* 節目表頁面專用的時間樣式 - 僅在 schedule.html 頁面使用 */
.schedule-page .schedule-time {
  font-weight: 700;
  color: var(--text-color);
  font-size: 1rem;
  display: flex;
  align-items: center;
}

/* 節目表頁面專用的節目資訊樣式 - 僅在 schedule.html 頁面使用 */
.schedule-page .schedule-program {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 節目表頁面專用的標題樣式 - 僅在 schedule.html 頁面使用 */
.schedule-page .program-title {
  font-weight: 600;
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.4;
}

/* 節目表頁面專用的分類樣式 - 僅在 schedule.html 頁面使用 */
.schedule-page .program-category {
  font-size: 0.8rem;
  color: var(--text-color-light);
  background: var(--section-bg);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
}

/* 節目表頁面專用的時長樣式 - 僅在 schedule.html 頁面使用 */
.schedule-page .schedule-duration {
  font-size: 0.9rem;
  color: var(--text-color-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 節目表頁面專用的狀態樣式 - 僅在 schedule.html 頁面使用 */
.schedule-page .program-status {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--primary-color);
  color: var(--cta-text-color);
}

/* 節目表頁面專用的當前節目狀態樣式 - 僅在 schedule.html 頁面使用 */
.schedule-page .schedule-item.current .program-status {
  background: #e74c3c;
  animation: pulse 2s infinite;
}

/* 節目表頁面專用的下一個節目狀態樣式 - 僅在 schedule.html 頁面使用 */
.schedule-page .schedule-item.next .program-status {
  background: #27ae60;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* 節目詳情模態框 */
.program-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.program-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--card-bg);
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.modal-body {
  padding: 30px;
}

.program-detail {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}

.program-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.program-image img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.program-time-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary-color);
  color: var(--cta-text-color);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.program-info h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.program-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.program-category {
  background: var(--primary-color);
  color: var(--cta-text-color);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

.program-duration {
  background: var(--section-bg);
  color: var(--text-color-light);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
}

.program-info p {
  color: var(--text-color-light);
  line-height: 1.6;
  margin-bottom: 24px;
}

.watch-now-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-color);
  color: var(--cta-text-color);
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.watch-now-btn:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.watch-now-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* 深色主題調整 */
body.dark-theme .week-navigation,
body.dark-theme .weekly-schedule,
body.dark-theme .modal-content {
  background: var(--card-bg);
  border-color: var(--card-border);
}

body.dark-theme .schedule-tab.active {
  background: var(--card-bg);
  color: var(--primary-color);
}

body.dark-theme .schedule-item.current {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.08) 100%);
  border-left-color: var(--primary-color);
}

body.dark-theme .schedule-item.next {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0.04) 100%);
  border-left-color: #ffd700;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .schedule-section {
    padding: 40px 4%;
  }
  
  /* 節目表頁面響應式設計 */
  .week-navigation {
    margin: 20px 4% 30px;
    padding: 20px;
  }
  
  .week-nav-container {
    flex-direction: column;
    gap: 16px;
  }
  
  .week-nav-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .week-display {
    margin: 0;
    order: -1;
  }
  
  .weekly-schedule {
    margin: 0 4% 40px;
  }
  
  .schedule-tabs {
    flex-wrap: wrap;
  }
  
  .schedule-tab {
    min-width: 100px;
    padding: 12px 8px;
    font-size: 0.85rem;
  }
  
  .schedule-day-content {
    padding: 20px;
  }
  
  .schedule-header {
    grid-template-columns: 80px 1fr 60px;
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.8rem;
  }
  
  .schedule-item {
    grid-template-columns: 80px 1fr 60px;
    gap: 12px;
    padding: 16px;
  }
  
  .schedule-time {
    font-size: 0.9rem;
  }
  
  .program-title {
    font-size: 0.9rem;
  }
  
  .program-category {
    font-size: 0.75rem;
    padding: 3px 6px;
  }
  
  .schedule-duration {
    font-size: 0.8rem;
  }
  
  .program-status {
    font-size: 0.7rem;
    padding: 3px 6px;
    top: 8px;
    right: 8px;
  }
  
  /* 節目詳情模態框響應式 */
  .modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .program-detail {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }
  
  .program-image {
    max-width: 200px;
    margin: 0 auto;
  }
  
  .program-image img {
    height: 100px;
  }
  
  .program-info h2 {
    font-size: 1.3rem;
  }
  
  .program-meta {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .watch-now-btn {
    width: 100%;
    justify-content: center;
  }
}
  

  
  
  /* 中等螢幕尺寸的響應式設計 */
  .schedule-page .schedule-list {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    padding: 16px !important;
  }
  
  .schedule-page .schedule-item {
    flex-direction: column !important;
  }
  
  .schedule-page .schedule-thumbnail {
    height: 140px !important;
  }
  
  .schedule-page .schedule-content {
    padding: 12px !important;
  }
  
  .schedule-page .program-title {
    font-size: 1rem !important;
  }
  
  .schedule-page .program-description {
    font-size: 0.85rem !important;
    -webkit-line-clamp: 2 !important;
  }
}

/* 小螢幕時節目表頁面改為單列顯示 */
@media (max-width: 768px) {
  .schedule-page .schedule-list {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
    gap: 16px !important;
  }
  
  .schedule-page .schedule-item {
    flex-direction: row !important;
    height: 180px !important;
  }
  
  .schedule-page .schedule-thumbnail {
    flex: 0 0 280px !important;
    height: 100% !important;
  }
  
  .schedule-page .schedule-content {
    padding: 16px !important;
    flex: 1 !important;
  }
  
  .schedule-page .program-title {
    font-size: 1rem !important;
    -webkit-line-clamp: 2 !important;
  }
  
  .schedule-page .program-description {
    font-size: 0.85rem !important;
    -webkit-line-clamp: 2 !important;
  }

  .schedule-list {
    padding: 16px;
    gap: 12px;
  }
  
  .schedule-item {
    flex: 0 0 280px; /* 小螢幕普通卡片寬度 */
  }
  
  .schedule-item.current {
    flex: 0 0 840px; /* 小螢幕現正播出卡片寬度為普通卡片的三倍 (280px × 3) */
  }
  
  .schedule-thumbnail {
    height: 140px;
  }
  
  .schedule-time {
    font-size: 1rem;
    padding: 4px 8px;
  }
  
  .program-title {
    font-size: 1rem;
    margin-bottom: 6px;
  }
  
  .program-description {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }
  
  .schedule-content {
    padding: 12px;
  }
  
  .schedule-item.current::after {
    top: 8px;
    right: 12px;
    font-size: 0.7rem;
    padding: 6px 8px;
  }
  
  .schedule-item.next .program-status {
    top: 8px;
    right: 12px;
    font-size: 0.7rem;
    padding: 4px 6px;
  }
  
  .schedule-item.current {
    transform: scale(1.03);
  }
  
  .schedule-item.next {
    transform: scale(1.01);
  }
  
  /* 移動端箭頭調整 */
  .schedule-nav-arrow {
    width: 48px;
    height: 48px;
  }
  
  .schedule-nav-arrow.left {
    left: -24px;
  }
  
  .schedule-nav-arrow.right {
    right: -24px;
  }
  
  .schedule-nav-arrow svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .schedule-section {
    padding: 30px 3%;
  }
  

  
  .schedule-list {
    padding: 12px;
    gap: 10px;
  }
  
  .schedule-item {
    flex: 0 0 250px; /* 更小螢幕普通卡片寬度 */
    padding: 14px;
  }
  
  .schedule-item.current {
    flex: 0 0 750px; /* 更小螢幕現正播出卡片寬度為普通卡片的三倍 (250px × 3) */
  }
  
  .schedule-time {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }
  
  .program-title {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }
  
  .program-category {
    font-size: 0.75rem;
    padding: 3px 8px;
    margin-bottom: 8px;
  }
  
  .schedule-duration {
    font-size: 0.8rem;
  }
  
  /* 小螢幕箭頭調整 */
  .schedule-nav-arrow {
    width: 44px;
    height: 44px;
  }
  
  .schedule-nav-arrow.left {
    left: -22px;
  }
  
  .schedule-nav-arrow.right {
    right: -22px;
  }
  
  .schedule-nav-arrow svg {
    width: 18px;
    height: 18px;
  }
}

/* 動畫效果 */
@keyframes scheduleCardSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.schedule-item {
  animation: scheduleCardSlideIn 0.6s ease-out;
  animation-fill-mode: both;
}

.schedule-item:nth-child(1) { animation-delay: 0.1s; }
.schedule-item:nth-child(2) { animation-delay: 0.2s; }
.schedule-item:nth-child(3) { animation-delay: 0.3s; }
.schedule-item:nth-child(4) { animation-delay: 0.4s; }
.schedule-item:nth-child(5) { animation-delay: 0.5s; }
.schedule-item:nth-child(6) { animation-delay: 0.6s; }
.schedule-item:nth-child(7) { animation-delay: 0.7s; }
.schedule-item:nth-child(8) { animation-delay: 0.8s; }

/* === 美觀套件增強效果 === */
/* 保持原有設計風格，只添加流暢的動畫效果 */

/* 導覽列連結懸停效果 */
.desktop-nav a {
  transition: all 0.3s ease;
}

.desktop-nav a:hover {
  transform: translateY(-2px);
}

/* 按鈕懸停效果 */
.section-cta-btn {
  transition: all 0.3s ease;
}

.section-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 節目表項目懸停效果 */
.schedule-item {
  transition: all 0.3s ease;
}

.schedule-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 影片卡片懸停效果 */
.video-card {
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 導覽箭頭懸停效果 */
.schedule-nav-arrow {
  transition: all 0.3s ease;
}

.schedule-nav-arrow:hover {
  transform: scale(1.1);
  background-color: rgba(0, 0, 0, 0.1);
}

/* 主題切換按鈕效果 */
#theme-switcher {
  transition: all 0.3s ease;
}

#theme-switcher:hover {
  transform: rotate(15deg);
}

/* 漢堡選單按鈕效果 */
.hamburger-btn {
  transition: all 0.3s ease;
}

.hamburger-btn:hover {
  transform: scale(1.05);
}

/* 側邊選單動畫 */
.side-menu {
  transition: transform 0.3s ease;
}

.side-menu.active {
  transform: translateX(0);
}

/* 選單遮罩動畫 */
.menu-overlay {
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
}

/* 頁面載入時的淡入效果 */
.hero-main-title h1 {
  animation: fadeInUp 1s ease-out;
}

.hero-main-title p {
  animation: fadeInUp 1s ease-out 0.2s both;
}

/* 響應式動畫調整 */
@media (max-width: 768px) {
  .desktop-nav a:hover {
    transform: none;
  }
  
  .section-cta-btn:hover {
    transform: none;
  }
  
  .schedule-item:hover {
    transform: none;
  }
  
  .video-card:hover {
    transform: none;
  }
}

/* === TLC風格版型樣式 === */
.schedule-container.tlc-style {
  display: flex;
  height: 500px;
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow-color);
  border: 1px solid var(--card-border);
}

/* 左側主節目區域 */
.main-program-area {
  flex: 1;
  background: #000;
  position: relative;
  display: flex;
  flex-direction: column;
}

.main-program-thumbnail {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.main-program-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-program-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.main-program-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.channel-logo {
  background: #e74c3c;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}

.main-program-actions {
  display: flex;
  gap: 12px;
}

.action-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.3s ease;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.main-program-info {
  color: white;
}

.main-program-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.main-program-description {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 16px;
}

.main-program-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-program-time {
  font-size: 1.2rem;
  font-weight: 700;
  color: #e74c3c;
}

.main-program-status {
  background: #e74c3c;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.main-program-duration {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button:hover {
  background: white;
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 20px solid #e74c3c;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

/* 右側節目列表區域 */
.program-list-area {
  flex: 1;
  background: var(--card-bg);
  overflow-y: auto;
  height: 100%;
}

.program-list-header {
  padding: 20px 20px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.program-list-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.program-list {
  padding: 10px 0;
}

.program-list-item {
  display: flex;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-left: 3px solid transparent;
}

.program-list-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

.program-list-item.current {
  background: rgba(231, 76, 60, 0.1);
  border-left-color: #e74c3c;
}

.program-list-item.upcoming {
  border-left-color: #3498db;
}

.program-list-thumbnail {
  width: 80px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  margin-right: 12px;
  flex-shrink: 0;
}

.program-list-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-list-info {
  flex: 1;
  min-width: 0;
}

.program-list-title-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.program-list-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-color-light);
}

.program-list-time {
  font-weight: 600;
  color: var(--primary-color);
}

.program-list-duration {
  opacity: 0.8;
}

/* 深色主題調整 */
body.dark-theme .now-playing-header {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.6) 0%, rgba(238, 90, 82, 0.6) 50%, rgba(231, 76, 60, 0.6) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-theme .upcoming-programs-header {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.6) 0%, rgba(53, 122, 189, 0.6) 50%, rgba(41, 128, 185, 0.6) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-theme .program-list-header {
  border-bottom-color: var(--card-border);
}

body.dark-theme .program-list-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

body.dark-theme .program-list-item.current {
  background: rgba(255, 215, 0, 0.1);
  border-left-color: var(--primary-color);
}

body.dark-theme .program-list-item.upcoming {
  border-left-color: #3498db;
}

body.dark-theme .channel-logo {
  background: var(--primary-color);
}

body.dark-theme .main-program-time {
  color: var(--primary-color);
}

body.dark-theme .main-program-status {
  background: var(--primary-color);
}

body.dark-theme .play-button::before {
  border-left-color: var(--primary-color);
}

/* 響應式設計 */
@media (max-width: 768px) {
  .schedule-container.tlc-style {
    flex-direction: column;
  }

  .main-program-area {
    min-height: 300px;
  }

  .program-list-area {
    max-height: 300px;
  }

  .main-program-title {
    font-size: 1.2rem;
  }

  .main-program-description {
    font-size: 0.9rem;
  }

  .main-program-overlay {
    padding: 16px;
  }

  .main-program-actions {
    gap: 8px;
  }

  .action-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .play-button {
    width: 60px;
    height: 60px;
  }

  .play-button::before {
    border-left-width: 15px;
    border-top-width: 9px;
    border-bottom-width: 9px;
  }
}

@media (max-width: 480px) {
  .main-program-area {
    min-height: 250px;
  }

  .program-list-area {
    max-height: 250px;
  }

  .main-program-title {
    font-size: 1.1rem;
  }

  .main-program-description {
    font-size: 0.85rem;
  }

  .main-program-time {
    font-size: 1rem;
  }

  .program-list-item {
    padding: 10px 16px;
  }

  .program-list-thumbnail {
    width: 60px;
    height: 40px;
  }

  .program-list-title-text {
    font-size: 0.85rem;
  }
}


/ *   �dUtW�? TnG�  -   1 0 / 0 3 / 2 0 2 5   1 4 : 3 6 : 3 6   * / 
 
 