/* ===================================================================
   ライブ配信・恋愛解説動画（TOP改修 10・2026-09-09）
   出典: Figma Make src/App.tsx L586-614 の実測値
   見出し・ボタンは gw-top-design の .gwt-* を使う（他セクションと共通）
   =================================================================== */
.gw-ytv { padding-bottom: 32px; } /* モックは末尾に高さ32pxのスペーサー */

.gw-ytv__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* モック grid-cols-2 */
  gap: 12px;                                        /* モック gap-3 */
}
@media (min-width: 768px) {
  .gw-ytv__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } /* md:grid-cols-4 */
}

.gw-ytv__card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.gw-ytv__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eee;
}
.gw-ytv__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* モック指定。上を優先して切る */
  display: block;
}

/* 再生オーバーレイ。モックは isVideo フラグ待ちで実際には描画されていなかったが、
   本物のYouTubeリンクなので出す（rgba(0,0,0,.28) と 22px の白三角はモックの値） */
.gw-ytv__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  transition: background var(--gwt-transition, .15s ease);
}
@media (hover: hover) {
  .gw-ytv__card:hover .gw-ytv__play { background: rgba(0, 0, 0, 0.42); }
}

/* 配信中バッジ。帯と同じ考え方で、色ではなく「白い面」で目立たせる */
.gw-ytv__live {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 1px 5px;
  border-radius: 3px;
  background: #fff;
  color: var(--gwt-primary, #de4592);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
}

.gw-ytv__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px 10px 12px;
}
.gw-ytv__title {
  font-size: 13px;
  font-weight: 600;
  color: #1e1e1e;
  line-height: 1.45;
  margin-bottom: 8px;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;   /* モック 3行クランプ */
  -webkit-box-orient: vertical;
}
.gw-ytv__meta {
  font-size: 11px;
  color: #777;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .gw-ytv__play { transition: none; }
}
