/* catharsis.jp — プレイヤー（Fluid Player 標準の見た目に合わせる）
 *
 * クリック前のスタブは「Fluid Player の初期再生ボタン」と同じ形・寸法にする。
 * 実測（fluid-player.js 同梱CSS）:
 *   .fluid_initial_play        { width:60px; height:60px; border-radius:50px }
 *   .fluid_initial_play_button { margin-top:15px; margin-left:23px;
 *                                border-width:15px 0 15px 21px;
 *                                border-color:transparent transparent transparent #fff }
 * 背景色は primaryColor（ここではピンク）。
 *
 * クリック後は Fluid Player が自前のコントロールを描画する。
 */

.vstub {
  position: relative;
  display: block;
  margin: 0 auto 2.8em;
  width: 100%;
  max-width: 900px;
  /* Flowplayer の .fp-ratio{padding-top:56.25%} と同じ高さ（900 × 0.5625 = 506.25）。
     padding-top を .vstub 自身に置くと「親幅」基準になり膨らむため aspect-ratio を使う。 */
  aspect-ratio: 16 / 9;
  /* 2.8em の基準を .flowplayer と同じ 14px に固定する */
  font-size: 14px;
  background: #000;
  border-radius: 0.24em;
  overflow: hidden;
}

.vstub > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.vstub > video,
.vstub > iframe,
.vstub .fluid_video_wrapper {
  position: absolute !important;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  background: #000;
}

/* ---- クリック前の再生ボタン（Fluid の初期ボタンと同寸） ---- */
.vstub .vplay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.vstub .vplay > span {
  position: relative;
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50px;
  background: #f06292;            /* Fluid の primaryColor に合わせたピンク */
  transition: filter 0.15s ease;
}

.vstub .vplay > span::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 15px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 21px;
  border-color: transparent transparent transparent #fff;
}

.vstub .vplay:hover > span,
.vstub .vplay:focus-visible > span {
  filter: brightness(1.08);
}

/* サムネイルが無い場合も同じボタン（背景は黒） */
.vstub.no-poster {
  background: #000;
}
