/* ============================================================
   投資動画ランキング（/videos、/shorts）の追加のスタイル（video.css）
   見出しのブロック・3つの切り替え・ページ下のリンクは、page-head.css（/live と共通）。
   そのほかの見出し・タブ・カード・モーダルは、style.css / live.css のものをそのまま使う。
   ここには、動画ランキングだけで必要なものを書く。
   ============================================================ */

/* 一番下の余白（フッターとの間に20px） */
main.wrap.video-wrap { padding-bottom: 20px; }

/* ---------- 順位のバッジ（サムネイルの左上）。1〜3位は、金・銀・銅（/live と同じ配色） ---------- */
.video-section .live-rank-badge[data-tier="1"] { background: linear-gradient(135deg, #FFE29A, var(--gold)); color: #3a2a05; }
.video-section .live-rank-badge[data-tier="2"] { background: linear-gradient(135deg, #E7EBEF, #939FAC); color: #2b2f34; }
.video-section .live-rank-badge[data-tier="3"] { background: linear-gradient(135deg, #E9C09B, #C98A52); color: #3a2005; }
.short-thumb-wrap .live-rank-badge { top: 10px; left: 10px; min-width: 28px; height: 28px; font-size: 1rem; border-radius: 6px; }

/* ---------- 1行：左に「期間 + 並び順」のバッジ、そのすぐ右にカテゴリ ----------
   [24時間 再生数ランキング ▼ ⟍][ 全て ⟋ 株 ⟋ FX ⟋ 仮想通貨 ⟋ ゴールド ]
   バッジは、/live の見出しと同じ形（右側が斜め）。カテゴリのタブの大きさは、バッジの高さに合う（/live と同じ） */
#videoApp .video-section .investor-head-row { margin-top: 18px; }
@media (max-width: 640px) {
  /* スマホ：1行目に、バッジ。2行目に、カテゴリ（横にスクロール。仮想通貨・ゴールドは、スクロールで見える） */
  #videoApp .video-section .investor-head-row { flex-wrap: wrap; row-gap: 8px; }
  #videoApp .video-section .investor-cat-tabs { flex: 1 0 100%; margin-left: 0; max-width: 100%; }
  /* バッジと別の行になるので、タブの高さが縮まないように、高さを決める（PCの /live と同じくらい） */
  #videoApp .video-sort-row .investor-cat-tab { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .9rem; }
}

/* カードの数字は2行：1行目＝再生・コメント・カテゴリ／2行目＝投稿からの時間・勢い。どれも、同じ太さ・色（カテゴリの札だけ、カテゴリの色） */
.video-stats, .short-stats { display: block; }
.video-stats-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.video-stats-row + .video-stats-row { margin-top: 3px; }
.video-stat { white-space: nowrap; font-weight: inherit; }

/* 一覧が空のとき */
.video-empty { padding: 32px 18px; text-align: center; color: var(--text-sub); grid-column: 1 / -1; }

/* 「もっと見る」 */
.video-more-wrap { margin-top: 16px; }
.video-more-wrap .load-more-btn[hidden] { display: none; }

/* 動画のタイトルは、2行で省略（live.css の高さ指定に加えて、省略の「…」を出す） */
#videoApp .live-topic { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------- ショート動画の一覧（縦長のカード）。横動画のカード（live.css の .live-item）と同じ、
   カードの背景・ホバーで広がる色・ダークモードの配色・文字の大きさにそろえる。横に3つ ---------- */
.short-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 20px 0; }
.short-item {
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 0;
  min-width: 0; padding: 10px; box-sizing: border-box; border-radius: var(--radius-lg);
}
.short-item:hover { z-index: 20; }
.short-item::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--glass-bg); border-radius: var(--radius-lg); transition: inset .45s ease;
}
.short-item:hover::before { inset: -10px; background: hsl(var(--accent-hue, 210) 70% 55% / .07); }
body.dark .short-item::before { background: var(--navy-surface); box-shadow: inset 0 0 0 1px hsl(var(--hue) 45% 55% / .16); }
body.dark .short-item:hover::before { background: color-mix(in srgb, hsl(var(--hue) 70% 55%) 30%, var(--page-bg)); }

.short-thumb-wrap { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.short-thumb { position: absolute; inset: 0; transition: transform .2s; }
.short-item:hover .short-thumb { transform: scale(1.03); }
/* 文字の大きさは、横動画のカード（.live-list-lg の中）と同じ値 */
.short-list .live-info { padding: 10px 2px 4px; gap: 8px; overflow: hidden; }
.short-list .live-topic { font-size: 1.1rem; margin-bottom: 2px; }
.short-list .live-avatar { width: 44px; height: 44px; flex-shrink: 0; }
.short-list .live-name { font-size: .95rem; }
.short-list .live-elapsed-line { font-size: .85rem; }
.short-list .live-name-viewers-text { overflow: hidden; }
@media (max-width: 560px)  { .short-list { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; } }

/* ---------- 動画モーダル：チャット欄が無いので、プレイヤーだけ。ショートは縦長 ---------- */
.video-modal-body { flex-direction: column; }
.video-modal-player { flex: none; }
.video-modal.is-short { max-width: 440px; }
.video-modal.is-short .video-modal-player { aspect-ratio: 9 / 16; max-height: 78vh; margin: 0 auto; width: auto; }
