/* ============================================================
   ページの見出しブロック・3つの切り替え・ページ下のリンク（page-head.css）
   /videos、/shorts、/live で共通。サイトの一番上のフォルダに置く（dist にもコピーされる）。
   使う場所:
     - 見出しのブロック（アイコン・見出し・飾りの線）… .video-title-block（色は data-cat のカテゴリの色）
     - 3つの切り替え（横動画・ショート・ライブ配信）… .video-page-tabs
     - ページ下のリンク（横に3つ）… .video-bottom-links
   色の変数（--cat-all など）と、ダークモードの濃さ（--tone-fill / --tone-ink）は、live.css にある。
   ============================================================ */

/* ガラスの部品（ヘッダーの、ライト／ダークの切り替えボタンと同じ作り。header.js の .ts-light / .ts-dark のすりガラスの値をそのまま使う）
   --glass-face: 面（白の半透明。上が明るく、下に向かってやわらかく変わる。くっきりした境目はなし）
   --glass-rim : ふち（灰青色と白の二重の線＋上の明るい線。外側の影はなし） */
:root {
  --glass-face: linear-gradient(180deg, hsl(0 0% 100% / .72) 0%, hsl(0 0% 100% / .38) 55%, hsl(0 0% 100% / .48) 100%);
  --glass-face-hover: linear-gradient(180deg, hsl(0 0% 100% / .88) 0%, hsl(0 0% 100% / .52) 55%, hsl(0 0% 100% / .62) 100%);
  --glass-rim: inset 0 0 0 1px hsl(214 22% 70% / .55), inset 0 0 0 2.5px hsl(0 0% 100% / .65), inset 0 2px 2px hsl(0 0% 100% / .9);
}
body.dark {
  --glass-face: linear-gradient(180deg, hsl(0 0% 100% / .10) 0%, hsl(0 0% 100% / .04) 60%, hsl(0 0% 100% / .07) 100%);
  --glass-face-hover: linear-gradient(180deg, hsl(0 0% 100% / .16) 0%, hsl(0 0% 100% / .08) 60%, hsl(0 0% 100% / .11) 100%);
  --glass-rim: inset 0 0 0 1px hsl(0 0% 100% / .10), inset 0 1px 1px hsl(0 0% 100% / .18);
}


/* ---------- 見出しのブロック（アイコン・見出し・カテゴリ・飾りの線・横動画／ショートの切り替え）。色は、選んだカテゴリの色 ---------- */
.video-title-block { --page-color: #E53935; --cat-color: var(--cat-all); --title-size: clamp(1.45rem, 3vw, 2rem); margin: 22px 0 6px; }
.video-title-block.is-live { --page-color: #F2780C; }   /* ヘッダーの色：配信ランキング=オレンジ、動画ランキング（横動画・ショート）=赤 */
.video-title-block[data-cat="stock"]  { --cat-color: var(--cat-stock); }
.video-title-block[data-cat="fx"]     { --cat-color: var(--cat-fx); }
.video-title-block[data-cat="crypto"] { --cat-color: var(--cat-crypto); }
.video-title-block[data-cat="gold"]   { --cat-color: var(--cat-gold); }
.video-title-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.video-title-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.video-title-icon {
  width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, var(--page-color), color-mix(in srgb, var(--page-color) 55%, #fff));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--page-color) 35%, transparent);
}
.video-title-icon svg { width: 30px; height: 30px; }
.video-title-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.video-title-en { font-size: .72rem; font-weight: 700; letter-spacing: .24em; color: var(--page-color); }
.video-page-title { margin: 0; font-weight: 900; line-height: 1.3; font-size: var(--title-size); color: var(--text-main); }
/* 見出しの中の、カテゴリの言葉（株・FX・仮想通貨・ゴールド・投資）：背景はなし。文字の色だけが、カテゴリの色 */
.video-title-cat { color: var(--cat-color); transition: color .2s; }
.video-title-rule {
  height: 4px; margin-top: 14px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cat-color) 0, color-mix(in srgb, var(--cat-color) 40%, transparent) 38%, transparent 100%);
}
body.dark .video-title-icon {
  background: color-mix(in srgb, var(--page-color) 40%, var(--header-bg, var(--page-bg)));   /* ヘッダーのメニューのアイコンと同じ：暗い面に、色を薄く混ぜる */
  color: color-mix(in srgb, var(--page-color) 45%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--page-color) 50%, transparent);
}
body.dark .video-title-en { color: color-mix(in srgb, var(--page-color) 45%, #fff); }
body.dark .video-title-cat { color: color-mix(in srgb, var(--cat-color) var(--tone-ink), #fff); }

/* ショートのページ：縦長のアイコン */
.video-title-block.is-short .video-title-icon { width: 46px; height: 62px; border-radius: 15px; }

/* ---------- 3つの切り替え（左から ライブ配信・横動画・ショート。ヘッダーのメニューと同じ順） ----------
   角丸の四角（ヘッダーのアイコンと同じ作り）が3つ。色は、行き先ごとにヘッダーの色（配信=オレンジ、動画・ショート=赤）。
   選んでいるものは、濃い色+白いアイコンで、少し浮く。選んでいないものは、薄い色+色付きのアイコン。
   PC は、ホバーした下に文字が出る。スマホは、選んでいるボタンだけ、アイコンの横に文字が出る。3つとも、同じ幅 */
.video-page-tabs { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.video-page-tab {
  --tab-color: #E53935;
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 52px; height: 48px; box-sizing: border-box; border-radius: 14px; text-decoration: none; white-space: nowrap;
  color: var(--tab-color);
  background: color-mix(in srgb, var(--tab-color) 13%, var(--page-bg));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tab-color) 22%, transparent);
  transition: transform .15s, background .2s, box-shadow .2s, color .2s;
}
.video-page-tab[data-page-kind="live"] { --tab-color: #F2780C; }
.video-page-tab[data-page-kind="video"], .video-page-tab[data-page-kind="short"] { --tab-color: #E53935; }
.video-page-tab svg { width: 24px; height: 24px; flex: none; }
.video-page-tab.active { cursor: default; }
.video-page-tab:not(.active):hover { transform: translateY(-1px); background: color-mix(in srgb, var(--tab-color) 22%, var(--page-bg)); }
.video-page-tab.active {
  z-index: 2; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
  background: linear-gradient(135deg, var(--tab-color), color-mix(in srgb, var(--tab-color) 55%, #fff));
  box-shadow: 0 5px 12px color-mix(in srgb, var(--tab-color) 38%, transparent), inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -2px 0 rgba(0, 0, 0, .12);
}
/* 文字：PC は、下に小さく出る（ホバー・キーボードで選んだとき） */
.video-page-tab-label {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); z-index: 30;
  padding: 4px 10px; border-radius: 8px; font-size: .78rem; font-weight: 700; line-height: 1.4;
  background: var(--text-main); color: var(--page-bg); text-shadow: none;
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.video-page-tab:last-child .video-page-tab-label { left: auto; right: 0; transform: none; }
@media (hover: hover) {
  .video-page-tab:hover .video-page-tab-label, .video-page-tab:focus-visible .video-page-tab-label { opacity: 1; }
}
/* ダークモード：ヘッダーのメニューのアイコン（header.js の body.dark .nav-ico）と同じ。暗い面に、色を薄く混ぜた四角＋明るいアイコン。選んでいるものは、少し濃く、白いアイコン */
body.dark .video-page-tab {
  color: color-mix(in srgb, var(--tab-color) 45%, #fff);
  background: color-mix(in srgb, var(--tab-color) 40%, var(--header-bg, var(--page-bg)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tab-color) 50%, transparent);
}
body.dark .video-page-tab:not(.active):hover { background: color-mix(in srgb, var(--tab-color) 50%, var(--header-bg, var(--page-bg))); }
body.dark .video-page-tab.active {
  color: #fff; text-shadow: none;
  background: color-mix(in srgb, var(--tab-color) 62%, var(--header-bg, var(--page-bg)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tab-color) 65%, transparent), inset 0 1px 1px hsl(0 0% 100% / .22);
}
@media (max-width: 640px) {
  /* スマホ：横いっぱいに、3等分。選んでいるボタンだけ、アイコンの横に文字 */
  .video-page-tabs { display: flex; flex: 1 0 100%; width: 100%; gap: 8px; }
  .video-page-tab { flex: 1 1 0; width: auto; min-width: 0; height: 46px; }
  .video-page-tab-label { display: none; }
  .video-page-tab.active .video-page-tab-label {
    display: inline; position: static; transform: none; opacity: 1; padding: 0; background: none; color: inherit;
    font-size: .9rem; font-weight: 800;
  }
}

/* /live：見出しのブロックの下に、カテゴリの行が続くときの間隔 */
#liveTitleBlock + .live-main-head { margin-top: 18px; }

/* ---------- ページ下のリンク：1枚のガラスの帯を、3つに区切る（真ん中がトップページ） ----------
   質感は、ヘッダーのライト／ダーク切り替えの「選んでいる丸」と同じ（影なし）。区切りは、細い縦線。
   ホバーは、そのリンクの区画が、行き先のイメージカラーの、透け感のあるガラスになる（文字は白）。
   PC：アイコンと文字を横に並べて、中央寄せ。スマホ：アイコンを上、文字を下 */
.video-bottom-links {
  display: flex; margin-top: 28px; overflow: hidden; border-radius: 0;   /* 角は丸めない */
  background-image: var(--glass-face-hover); box-shadow: var(--glass-rim);
  -webkit-backdrop-filter: blur(8px) saturate(1.25); backdrop-filter: blur(8px) saturate(1.25);
}
.video-bottom-link {
  --link-color: var(--accent);
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 12px; box-sizing: border-box; text-align: center;
  color: var(--text-sub); text-decoration: none; font-weight: 800; font-size: .95rem; line-height: 1.4; transition: background .2s, color .2s;   /* 文字は、黒ではなく、控えめな色 */
}
.video-bottom-link + .video-bottom-link { box-shadow: inset 1px 0 0 hsl(214 22% 70% / .45), inset 2px 0 0 hsl(0 0% 100% / .6); }
.video-bottom-link:hover {
  color: #fff; text-shadow: 0 1px 2px hsl(0 0% 0% / .22);
  /* ホバー：その区画だけ、行き先の色の、透け感のあるガラス（白いふちの光つき） */
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--link-color) 80%, transparent) 0%, color-mix(in srgb, var(--link-color) 92%, transparent) 55%, color-mix(in srgb, var(--link-color) 86%, transparent) 100%);
  box-shadow: inset 0 0 0 1px hsl(0 0% 100% / .5), inset 0 0 0 2.5px hsl(0 0% 100% / .18), inset 0 2px 2px hsl(0 0% 100% / .6);
}
.video-bottom-link:hover .video-bottom-icon { background: #fff; color: var(--link-color); box-shadow: none; }   /* ヘッダーと同じ：ホバー中のアイコンは、白い四角に色付きのアイコン */
.video-bottom-link.is-top    { --link-color: var(--accent); }
.video-bottom-link.is-videos { --link-color: #E53935; }
.video-bottom-link.is-shorts { --link-color: #E53935; }
.video-bottom-link.is-live   { --link-color: #F2780C; }
/* アイコン：ヘッダーのメニューのアイコン（header.js の .nav-ico）と同じ作り */
.video-bottom-icon {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; color: #fff;
  background: linear-gradient(135deg, var(--link-color), color-mix(in srgb, var(--link-color) 62%, #fff));
  box-shadow: 0 2px 6px color-mix(in srgb, var(--link-color) 32%, transparent);
}
.video-bottom-icon svg { width: 22px; height: 22px; }
.video-bottom-text { min-width: 0; text-align: center; }
body.dark .video-bottom-link + .video-bottom-link { box-shadow: inset 1px 0 0 hsl(0 0% 100% / .10); }
body.dark .video-bottom-link:hover {
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--link-color) 30%, transparent) 0%, color-mix(in srgb, var(--link-color) 40%, transparent) 55%, color-mix(in srgb, var(--link-color) 34%, transparent) 100%);   /* 明るくなりすぎないよう、薄めに */
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--link-color) 70%, transparent), inset 0 1px 1px hsl(0 0% 100% / .14);
}
body.dark .video-bottom-link:hover .video-bottom-icon { background: color-mix(in srgb, var(--link-color) 62%, var(--header-bg, var(--page-bg))); color: #fff; box-shadow: none; }
body.dark .video-bottom-icon {
  background: color-mix(in srgb, var(--link-color) 40%, var(--header-bg, var(--page-bg)));
  color: color-mix(in srgb, var(--link-color) 45%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--link-color) 50%, transparent);
}
@media (max-width: 640px) {
  .video-bottom-link { flex-direction: column; gap: 6px; padding: 12px 4px 10px; font-size: .74rem; }
  .video-bottom-icon { width: 38px; height: 38px; }
}

/* ---------- 見出しのバッジとカテゴリのタブ（/live・/videos・/shorts）：ヘッダーのライト／ダーク切り替えと同じ作り ----------
   選んでいる（ホバーした）タブとバッジ＝カテゴリの色。上が少し明るく、下が少し濃い、やわらかい1色の立体（切り替えの、ダーク側のネイビーと同じ考え方）。
   ふちの内側の線と、下の内側の影で、厚みを出す。外側の影はなし。
   選んでいないタブ＝地味な灰色のボタン（切り替えの、選んでいないほうと同じ）。
   形（斜め）は、live.css のまま。（live.css の色の指定より優先されるよう、body を付けて強くしてある） */
body .investor-head-row[data-cat] .investor-section-heading, body .investor-head-row .investor-section-heading,
body .investor-cat-tab:hover::before, body .investor-cat-tab.active::before {
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--cat-color) 80%, #fff) 0%, var(--cat-color) 55%, color-mix(in srgb, var(--cat-color) 78%, #000) 100%);
  box-shadow: inset 0 0 0 1px hsl(0 0% 100% / .28), inset 0 1px 1px hsl(0 0% 100% / .55), inset 0 -3px 5px hsl(0 0% 0% / .16);
}
body.dark .investor-head-row[data-cat] .investor-section-heading, body.dark .investor-head-row .investor-section-heading,
body.dark .investor-cat-tab:hover::before, body.dark .investor-cat-tab.active::before {
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--cat-color) 78%, var(--page-bg)) 0%, color-mix(in srgb, var(--cat-color) 60%, var(--page-bg)) 55%, color-mix(in srgb, var(--cat-color) 46%, var(--page-bg)) 100%);
  box-shadow: inset 0 0 0 1px hsl(0 0% 100% / .16), inset 0 1px 1px hsl(0 0% 100% / .3), inset 0 -3px 5px hsl(0 0% 0% / .3);
}
body .investor-cat-tab::before { background-image: none; background-color: hsl(215 14% 88%); box-shadow: inset 0 0 0 1px hsl(215 14% 81%), inset 0 1px 0 hsl(0 0% 100% / .7); }
body.dark .investor-cat-tab::before { background-image: none; background-color: hsl(0 0% 100% / .07); box-shadow: inset 0 1px 0 hsl(0 0% 100% / .08); }

/* ---------- 期間・並び順のメニュー（/videos、/shorts、/live の人気アーカイブで共通） ---------- */
.video-filter-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
  width: min(540px, calc(100vw - 28px)); padding: 14px 16px; border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--page-bg) 94%, #fff); border: 1px solid var(--glass-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
}
body.dark .video-filter-menu { background: var(--navy-surface); }
.live-sort-wrap.open .video-filter-menu { display: block; }
.video-filter-group + .video-filter-group { margin-top: 14px; }
.video-filter-title { margin: 0 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; color: var(--text-sub); }
.video-filter-items { display: flex; flex-wrap: wrap; gap: 8px; }
.video-filter-item {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--glass-bg);
  font-size: .88rem; font-weight: 700; color: var(--text-sub); text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.video-filter-item:hover { color: var(--text-main); }
.video-filter-item.active { background: var(--cat-color); color: #fff; border-color: transparent; }
body.dark .video-filter-item.active { background: color-mix(in srgb, var(--cat-color) 78%, var(--page-bg)); }
@media (max-width: 640px) {
  /* スマホのメニュー：期間は、4つ + 3つ（24時間・2日・3日・5日 / 7日・14日・30日）の2段。並び順は、3つ */
  .video-filter-items-period { display: grid; grid-template-columns: repeat(4, 1fr); }
  .video-filter-items-sort { display: grid; grid-template-columns: repeat(3, 1fr); }
  .video-filter-item { text-align: center; padding-left: 6px; padding-right: 6px; }
}

/* ---------- /live の人気投資家の枠：すりガラスの板（ヘッダーのライト／ダーク切り替えの「選んでいる丸」と同じ質感）。
   外側の影も、ホバーで広がる動きもなし（ホバーしても、面の色は変わらない）。
   カテゴリの色は、面にごく薄く混ぜるのと、小さなカテゴリの札・いま選んでいる配信の文字に使う。角は丸めない。アイコンの輪はなし ---------- */
.popular-investors-grid > .investor-card, .investor-card {
  --cat-color: var(--cat-other);
  position: relative; isolation: isolate; box-sizing: border-box; padding: 14px 12px 10px; border-radius: 0;   /* 角は丸めない */
  background: transparent !important; border: 0 !important; box-shadow: none !important;
}
.investor-card[data-category="株"]       { --cat-color: var(--cat-stock); }
.investor-card[data-category="FX"]       { --cat-color: var(--cat-fx); }
.investor-card[data-category="仮想通貨"] { --cat-color: var(--cat-crypto); }
.investor-card[data-category="ゴールド"] { --cat-color: var(--cat-gold); }
.investor-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 0;
  /* 面の色は、これまでの「ホバーしたとき」の色を、いつもの色にした。ホバーしても、面の色は変わらない */
  background-image: linear-gradient(color-mix(in srgb, var(--cat-color) 7%, transparent), color-mix(in srgb, var(--cat-color) 7%, transparent)), var(--glass-face-hover);
  box-shadow: var(--glass-rim);
  -webkit-backdrop-filter: blur(8px) saturate(1.25); backdrop-filter: blur(8px) saturate(1.25);
}
.investor-card .investor-head { display: flex; align-items: center; gap: 12px; }
.investor-card .investor-name { font-weight: 800; }
.investor-cat-chip {
  margin-left: auto; flex: none; padding: 2px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; line-height: 1.6; color: #fff;
  background: var(--cat-color);
}
body.dark .investor-cat-chip {
  background: color-mix(in srgb, var(--cat-color) 40%, var(--header-bg, var(--page-bg)));
  color: color-mix(in srgb, var(--cat-color) 45%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cat-color) 50%, transparent);
}
.investor-card .investor-hover-item { border-radius: 0; }
.investor-card .investor-hover-item:hover, .investor-card .investor-hover-item.active { background: color-mix(in srgb, var(--cat-color) 9%, transparent); }
.investor-card .investor-hover-item.active .investor-hover-title { color: var(--cat-color); }
body.dark .investor-card .investor-hover-item.active .investor-hover-title { color: color-mix(in srgb, var(--cat-color) var(--tone-ink), #fff); }

/* 人気アーカイブのカード：「最大1.2万人」と「6時間前に終了」は、区切りの「・」なしで、少し間をあけて並べる */
.archive-stat { display: inline-block; margin-right: 10px; white-space: nowrap; }

/* ---------- カテゴリの札（配信カードの名前の横・動画カードの数字の行）。色は、カテゴリの色（ライト／ダークは、ヘッダーのメニューのアイコンと同じ考え方） ---------- */
.live-category-tag {
  --cat-color: var(--cat-other);
  display: inline-block; flex: none; padding: 1px 9px; border-radius: 999px; font-size: .7rem; font-weight: 800; line-height: 1.6; letter-spacing: .02em;
  color: #fff; background: linear-gradient(135deg, var(--cat-color), color-mix(in srgb, var(--cat-color) 65%, #fff)); border: 0; box-shadow: none; white-space: nowrap;
}
.live-category-tag[data-category="株"]       { --cat-color: var(--cat-stock); }
.live-category-tag[data-category="FX"]       { --cat-color: var(--cat-fx); }
.live-category-tag[data-category="仮想通貨"] { --cat-color: var(--cat-crypto); }
.live-category-tag[data-category="ゴールド"] { --cat-color: var(--cat-gold); }
.live-category-tag:empty, .live-category-tag[data-category=""] { display: none; }
body.dark .live-category-tag {
  background: color-mix(in srgb, var(--cat-color) 40%, var(--header-bg, var(--page-bg)));
  color: color-mix(in srgb, var(--cat-color) 45%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cat-color) 50%, transparent);
}

/* ---------- 「もっと見る」「続きを表示」ボタン：ガラスの、角丸の四角（丸ではない）。中央寄せ。右に下向きの矢印。
   質感は、人気投資家の枠・下のリンクと同じ（影なし）。文字は、サイトのイメージカラー。
   ホバー：ガラスの面が、透け感のある青いガラス（白いふちの光つき）にふわっと変わり、文字は白。横に少し広がる。上下には動かない。角は丸めない ---------- */
body .load-more-btn {
  position: relative; isolation: isolate;
  display: flex !important; align-items: center; justify-content: center; gap: 10px; width: min(360px, 100%); min-width: 0; max-width: 100%; margin-left: auto; margin-right: auto;
  padding: 13px 32px; border: 0 !important; border-radius: 0;   /* 角は丸めない */
  font-size: .95rem; font-weight: 800; color: var(--accent); cursor: pointer;
  background: transparent var(--glass-face-hover) !important; box-shadow: var(--glass-rim) !important;
  -webkit-backdrop-filter: blur(8px) saturate(1.25); backdrop-filter: blur(8px) saturate(1.25);
  transition: width .25s ease, color .2s;
}
body .load-more-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .25s ease;
  /* 青いガラス：透け感のある青に、白いふちの光（ライト／ダーク切り替えの、選んでいる丸と同じ考え方）。文字が読めるよう、透けすぎない濃さ */
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, transparent) 0%, color-mix(in srgb, var(--accent) 92%, transparent) 55%, color-mix(in srgb, var(--accent) 86%, transparent) 100%);
  box-shadow: inset 0 0 0 1px hsl(0 0% 100% / .5), inset 0 0 0 2.5px hsl(0 0% 100% / .18), inset 0 2px 2px hsl(0 0% 100% / .6);
}
body.dark .load-more-btn::before {
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--accent) 62%, transparent) 0%, color-mix(in srgb, var(--accent) 78%, transparent) 55%, color-mix(in srgb, var(--accent) 68%, transparent) 100%);
  box-shadow: inset 0 0 0 1px hsl(0 0% 100% / .22), inset 0 1px 1px hsl(0 0% 100% / .32);
}
body .load-more-btn::after {
  content: ""; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .7;
}
body .load-more-btn:hover { width: min(392px, 100%); color: #fff; text-shadow: 0 1px 2px hsl(0 0% 0% / .22); }
body .load-more-btn:hover::before { opacity: 1; }
.video-more-wrap .load-more-btn[hidden], body .load-more-btn[hidden] { display: none !important; }
body .load-more-btn:disabled, body .load-more-btn:disabled:hover { opacity: .55; cursor: default; width: min(360px, 100%); color: var(--text-sub); }
body .load-more-btn:disabled::before { display: none; }
body .load-more-btn:disabled::after { display: none; }

/* ---------- 配信・動画カードの名前の行：カテゴリの札は、右端に固定（名前が長いときは、名前が「…」で省略される） ---------- */
.live-name-with-cat { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; }
.live-name-with-cat .live-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-name-with-cat .live-category-tag { margin-left: auto; flex: none; }

/* ---------- 配信・動画カードのホバーで広がる色：カテゴリの色（株=青、FX=緑、仮想通貨=紫、ゴールド=金）。
   見分けやすいよう、ホバー用の色（--cat-tint）は、札の色より鮮やか。その他のカテゴリ・カテゴリなしは、落ち着いた灰青色 ---------- */
.live-item, .short-item { --cat-color: var(--cat-other); --cat-tint: hsl(215 18% 52%); }
.live-item[data-category="株"], .short-item[data-category="株"]             { --cat-color: var(--cat-stock);  --cat-tint: hsl(215 90% 56%); }
.live-item[data-category="FX"], .short-item[data-category="FX"]             { --cat-color: var(--cat-fx);     --cat-tint: hsl(158 80% 38%); }
.live-item[data-category="仮想通貨"], .short-item[data-category="仮想通貨"] { --cat-color: var(--cat-crypto); --cat-tint: hsl(265 85% 62%); }
.live-item[data-category="ゴールド"], .short-item[data-category="ゴールド"] { --cat-color: var(--cat-gold);   --cat-tint: hsl(40 95% 48%); }
body .live-item:hover::before, body .short-item:hover::before { background: color-mix(in srgb, var(--cat-tint) 15%, transparent); }
body.dark .live-item:hover::before, body.dark .short-item:hover::before { background: color-mix(in srgb, var(--cat-tint) 32%, var(--page-bg)); }

/* ---------- 「全て」の中の、その他のカテゴリ（2chまとめ動画・ニュース・不動産など。スプレッドシートから自動）----------
   色は、すべて同じ、落ち着いた灰青色。「全て」のタブに小さな矢印が付き、押すとメニューが開く */
body { --cat-other: #64748B; }
body.dark { --cat-other: #8190A6; }
.investor-head-row[data-cat="other"], .video-title-block[data-cat="other"] { --cat-color: var(--cat-other); }
.live-cat-tab .cat-label, .investor-cat-tab .cat-label { display: inline; }
.cat-caret { display: inline-block; width: 6px; height: 6px; margin: -3px 0 0 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .75; vertical-align: middle; }
.cat-extra-menu {
  position: fixed; z-index: 200; min-width: 200px; max-width: min(320px, calc(100vw - 16px)); max-height: 60vh; overflow-y: auto; padding: 6px;
  border-radius: var(--radius-lg); background: color-mix(in srgb, var(--page-bg) 94%, #fff); border: 1px solid var(--glass-border); box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
}
.cat-extra-menu[hidden] { display: none; }
.cat-extra-menu a { display: block; padding: 9px 14px; border-radius: 8px; font-size: .92rem; font-weight: 700; color: var(--text-sub); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-extra-menu a:hover { background: color-mix(in srgb, var(--cat-other) 16%, transparent); color: var(--text-main); }
.cat-extra-menu a.active { background: var(--cat-other); color: #fff; }
body.dark .cat-extra-menu { background: var(--navy-surface); }
