@charset "UTF-8";
/* =========================================================
   YouTube Player Component
   Scope: .yt_player ONLY
   ========================================================= */
.yt_player {
  width: 100%;
  display: block;
  font: inherit;
  /* =========================
     Shell / Stage
     ========================= */
  /* =========================
     Poster
     ========================= */
  /* =========================
     Controls bar
     ========================= */
  /* =========================
     Buttons
     ========================= */
  /* Play/Pause */
  /* Mute */
  /* Fullscreen icon state (optional) */
  /* Mobile immersive 時，ytFs 也要切換成 compress 狀態 */
  /* =========================
     Time
     ========================= */
  /* =========================
     Progress
     ========================= */
  /* =========================
     Mask (click-to-close)
     ========================= */
  /* Close button (top-right) */
  /* =========================================================
     Desktop fullscreen (original full-cover feel)
     - is-fs: Fullscreen API
     - is-fs-fallback: fixed fallback
     - Controls always kept
     ========================================================= */
  /* Desktop: close shown (you can keep it; it’s useful in fallback) */
  /* Desktop fallback uses mask (blocks background clicks & can click to close) */
  /* ensure stage/controls above mask in fallback */
  /* =========================================================
     Mobile immersive (for rotate/vh stability)
     - Uses 100dvh
     - Mask blocks background clicks, click to close
     ========================================================= */
  /* =========================
  Mobile immersive: CLOSE 必須 fixed
  ========================= */
}
.yt_player,
.yt_player *,
.yt_player *::before,
.yt_player *::after {
  box-sizing: border-box;
}
.yt_player .ytPlayerShell {
  width: 100%;
  display: block;
  position: relative;
}
.yt_player .ytStage {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #e9e9e9;
  overflow: hidden;
  display: block;
}
.yt_player .ytMount {
  position: absolute;
  inset: 0;
}
.yt_player iframe {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  border: none !important;
  border-color: transparent !important;
}
.yt_player .ytPoster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(#f2f2f2, #dcdcdc);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.yt_player .ytPoster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yt_player .ytPlayerShell.is-playing .ytPoster {
  opacity: 0;
}
.yt_player .ytControls {
  height: 46px;
  background: #0f0f0f;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  user-select: none;
  line-height: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.yt_player .ytBtn {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.9;
}
.yt_player .ytBtn:hover {
  opacity: 1;
}
.yt_player .ytBtn i {
  font-size: 16px;
  color: #fff;
  line-height: 1;
  pointer-events: none;
}
.yt_player .ytBtn:focus, .yt_player .ytBtn:focus-visible {
  outline: none;
  box-shadow: none;
}
.yt_player .ytPlay .fa-pause {
  display: none;
}
.yt_player .ytPlayerShell.is-playing .ytPlay .fa-play {
  display: none;
}
.yt_player .ytPlayerShell.is-playing .ytPlay .fa-pause {
  display: inline-block;
}
.yt_player .ytMute {
  font-size: 23px;
  transform: translateX(1px) scale(1.3);
}
.yt_player .ytMute i {
  display: none;
}
.yt_player .ytPlayerShell:not(.is-muted) .ytMute .fa-volume-down {
  display: inline-block;
}
.yt_player .ytPlayerShell.is-muted .ytMute .fa-volume-off {
  display: inline-block;
}
.yt_player .ytFs .fa-compress {
  display: none;
}
.yt_player .ytPlayerShell.is-fs .ytFs .fa-expand,
.yt_player .ytPlayerShell.is-fs-fallback .ytFs .fa-expand {
  display: none;
}
.yt_player .ytPlayerShell.is-fs .ytFs .fa-compress,
.yt_player .ytPlayerShell.is-fs-fallback .ytFs .fa-compress {
  display: inline-block;
}
.yt_player .ytPlayerShell.is-immersive .ytFs .fa-expand {
  display: none;
}
.yt_player .ytPlayerShell.is-immersive .ytFs .fa-compress {
  display: inline-block;
}
.yt_player .ytTime {
  color: #fff;
  font-size: 12px;
  min-width: 44px;
  text-align: center;
  opacity: 0.9;
  line-height: 1;
}
.yt_player .ytProgress {
  position: relative;
  flex: 1;
  height: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.yt_player .ytTrack {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 99px;
}
.yt_player .ytFill {
  position: absolute;
  left: 0;
  height: 2px;
  width: 0%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 99px;
}
.yt_player .ytDot {
  position: absolute;
  left: 0%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f39a1f;
  transform: translate(-50%, -50%);
}
.yt_player .ytMask {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 0;
  pointer-events: none;
}
.yt_player .ytClose {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.yt_player .ytPlayerShell.is-fs,
.yt_player .ytPlayerShell.is-fs-fallback {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: #000;
  display: flex;
  flex-direction: column;
}
.yt_player .ytPlayerShell.is-fs .ytStage,
.yt_player .ytPlayerShell.is-fs-fallback .ytStage {
  aspect-ratio: auto;
  width: 100%;
  height: calc(100vh - 46px);
  background: #000;
}
.yt_player .ytPlayerShell.is-fs .ytControls,
.yt_player .ytPlayerShell.is-fs-fallback .ytControls {
  width: 100%;
  flex: 0 0 46px;
}
.yt_player .ytPlayerShell.is-fs .ytClose,
.yt_player .ytPlayerShell.is-fs-fallback .ytClose {
  display: inline-flex;
}
.yt_player .ytPlayerShell.is-fs-fallback .ytMask {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
}
.yt_player .ytPlayerShell.is-fs-fallback .ytMask,
.yt_player .ytPlayerShell.is-immersive .ytMask {
  display: block;
  pointer-events: auto;
}
.yt_player .ytPlayerShell.is-fs-fallback .ytStage,
.yt_player .ytPlayerShell.is-fs-fallback .ytControls {
  position: relative;
  z-index: 1;
}
.yt_player .ytPlayerShell.is-immersive {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: transparent;
  display: flex;
  flex-direction: column;
}
.yt_player .ytPlayerShell.is-immersive .ytMask {
  display: block;
}
.yt_player .ytPlayerShell.is-immersive .ytStage,
.yt_player .ytPlayerShell.is-immersive .ytControls {
  position: relative;
  z-index: 1;
}
.yt_player .ytPlayerShell.is-immersive .ytStage {
  aspect-ratio: auto;
  width: 100%;
  height: calc(100dvh - 46px);
  background: #000;
}
.yt_player .ytPlayerShell.is-immersive .ytControls {
  width: 100%;
  flex: 0 0 46px;
  background: #0f0f0f;
}
.yt_player .ytPlayerShell.is-immersive .ytClose {
  display: inline-flex;
}
.yt_player .ytPlayerShell.is-immersive .ytClose {
  position: fixed; /* ★ 核心關鍵 */
  top: 12px;
  right: 12px;
  z-index: 10005; /* ★ 必須高於 iframe */
  pointer-events: auto; /* ★ 明確允許點擊 */
}

/*# sourceMappingURL=yt_player.css.map */
