/* ----------------------------------------------------------
   Lightbox CSS（第63回 群馬大会仕様の完全再現）
   ---------------------------------------------------------- */

/* 背景オーバーレイ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn .3s ease;
}

/* 表示時 */
.lightbox-overlay.active {
  display: flex;
}

/* コンテンツ（黒背景＋動画エリア） */
.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 700px; /* ← 前回大会と同等サイズ */
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  padding: 16px 0; /* ← 上下にわずかな余白を追加（前回仕様） */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  animation: scaleIn .25s ease;
}

/* YouTube動画をポップアップ全体に広げる */
.lightbox-content iframe {
  display: block;
  width: 100%;
  height: 394px; /* ← 700px幅時に16:9比率を維持（700 ÷ 16 × 9） */
  border: none;
  background: #000;
}

/* 閉じるボタン */
.lightbox-close {
  position: absolute;
  top: -36px;
  right: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  background: transparent;
  border: none;
  font-weight: bold;
  transition: 0.2s;
}
.lightbox-close:hover {
  color: #ccc;
}

/* フェードアニメーション */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0.5; }
  to { transform: scale(1); opacity: 1; }
}

/* スマホ対応 */
@media (max-width: 768px) {
  .lightbox-content {
    width: 96%;
    max-width: none;
    padding: 8px 0;
    border-radius: 0;
  }
  .lightbox-content iframe {
    height: 56vw; /* 画面幅の約56%で16:9比を維持 */
  }
  .lightbox-close {
    top: 6px;
    right: 10px;
    font-size: 26px;
  }
}

/* ----------------------------------------------------------
   YouTubeバナー中央に赤い再生ボタンを重ねる（40px版／第63回大会準拠）
   ---------------------------------------------------------- */
.moviemenu {
  position: relative;
  margin-top: 16px;
}
.moviemenu a {
  display: block;
  position: relative;
  transition: filter .3s ease, transform .3s ease;
}
.moviemenu a:hover {
  filter: brightness(1.08);
  transform: scale(1.02);
}

/* 再生ボタン：中央に小さめ（40px）配置 */
.moviemenu a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at center, #ff0000 0%, #cc0000 100%);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
  transition: 0.3s;
  z-index: 2;
}

/* 白い三角形（▶マーク） */
.moviemenu a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-left: 10px solid #fff;  /* ← 以前18px → 小型化 */
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  z-index: 3;
  transition: 0.3s;
}

/* ホバー時にやや拡大・明るく */
.moviemenu a:hover::before {
  transform: translate(-50%, -50%) scale(1.1);
  background: radial-gradient(circle at center, #ff3333 0%, #cc0000 100%);
}
.moviemenu a:hover::after {
  transform: translate(-40%, -50%) scale(1.05);
}
