@media (max-width: 950px) {
  body.support-page {
    padding-top: 0 !important;
  }
}

@media (min-width: 951px) {
  body.support-page .main {
    width: calc(var(--width-main) + var(--width-right));
  }
}

.ss-wrap {
  width: 100%;
  margin: 0 auto;
  padding: 0 10px 24px;
}

.ss-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: saturate(1.2) blur(6px);
}

.ss-header-inner {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ss-gnav-scroll {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.ss-gnav-scroll::-webkit-scrollbar {
  display: none;
}

.ss-gnav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: max-content;
  height: 46px;
  padding: 0 10px;
  scrollbar-width: none;
}

.ss-gnav::-webkit-scrollbar {
  display: none;
}

.ss-tab {
  flex: 0 0 auto;
  min-width: 88px;
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1;
  color: #dfe3e7;
  background: transparent;
  border: none;
  border-radius: 9px;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  box-sizing: border-box;
  transition: color .2s ease, background-color .2s ease, opacity .2s ease;
}

.ss-tab:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ss-tab.is-active {
  color: #fff;
  background: transparent;
}

.ss-tab.is-active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -5px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

@media (max-width: 950px) {
  .ss-wrap {
    padding: 0 8px 20px;
  }

  .ss-header {
    position: sticky;
    top: 0;
  }

  .ss-header-inner {
    height: 42px;
  }

  .ss-gnav-scroll {
    justify-content: flex-start;
    padding-left: 4px;
    padding-right: 4px;
  }

  .ss-gnav {
    gap: 5px;
    height: 42px;
    padding: 0 5px;
  }

  .ss-tab {
    min-width: 72px;
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
    border-radius: 8px;
  }

  .ss-tab.is-active::after {
    left: 6px;
    right: 6px;
    bottom: -4px;
    height: 2px;
  }
}

@media (max-width: 380px) {
  .ss-gnav {
    gap: 2px;
  }

  .ss-tab {
    min-width: 64px;
    padding: 0 6px;
    font-size: 11px;
  }
}

.ss-main {
  padding-top: 14px;
}

.ss-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .2px;
}

.ss-sub {
  margin: 0 0 14px;
  color: var(--color-muted);
  font-size: 14px;
}

.main {
  padding-bottom: var(--mobile-footer-space);
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* 全体（既存の黒白テーマに合わせる） */
.vp-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 12px 0 14px;
}

.vp-section {
  margin-top: 14px;
}

.vp-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.vp-title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.vp-sub {
  margin: 0;
  font-size: 12px;
  color: var(--color-muted);
}

/* ===== 通常動画（横カード） ===== */
.vp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 750px) {
  .vp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 550px) {
  .vp-grid {
    grid-template-columns: 1fr;
  }
}

.vp-card {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.20);
  display: flex;
  flex-direction: column;
  min-height: 220px;
  cursor: pointer;
  user-select: none;
}

.vp-card:hover {
  transform: translateY(-2px);
  transition: transform .15s ease, background .15s ease;
  background: rgba(255, 255, 255, 0.03);
}

.vp-thumb {
  position: relative;
  height: auto !important;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: transparent !important;
}

.vp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.vp-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.vp-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.vp-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vp-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
}

.vp-chip {
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.vp-desc {
  margin: 0;
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ===== Shorts（縦カード横スクロール） ===== */
.vp-shorts {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.vp-shorts::-webkit-scrollbar {
  display: none;
}

.vp-short {
  flex: 0 0 auto;
  width: 160px;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.20);
  cursor: pointer;
}

.vp-short-thumb {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(80% 120% at 20% 10%, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(80% 120% at 90% 20%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.vp-short-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.vp-short-meta {
  padding: 10px 10px 12px;
}

.vp-short-title {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.vp-short-tag {
  margin-top: 6px;
  font-size: 11px;
  color: var(--color-muted);
}

/* ===== モーダル（動画） ===== */
.vp-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.vp-modal.is-open {
  display: block;
}

.vp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.vp-modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(860px, calc(100vw - 24px));
  transform: translate(-50%, -50%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 10, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.vp-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.vp-modal-title {
  font-weight: 900;
}

.vp-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  cursor: pointer;
  font-size: 18px;
}

.vp-modal-body {
  padding: 14px;
}

.vp-player-placeholder {
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.vp-player-title {
  margin: 0 0 6px;
  font-weight: 900;
}

.vp-player-sub {
  margin: 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.6;
}

.vp-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vp-top-right {
  flex: 0 0 auto;
}

/* プルダウン */
.vp-filter-wrap {
  position: relative;
  display: inline-block;
}

.vp-filter-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.70);
  border-bottom: 2px solid rgba(255, 255, 255, 0.70);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.vp-filter {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  border-radius: 12px;
  padding: 10px 42px 10px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.vp-filter:hover {
  background: rgba(255, 255, 255, 0.07);
}

/* スマホでは下に回す */
@media (max-width: 750px) {
  .vp-top {
    flex-direction: column;
    align-items: stretch;
  }

  .vp-filter-wrap {
    width: 100%;
  }

  .vp-filter {
    width: 100%;
  }
}

/* ===============================
   video.css | Light mode overrides
=============================== */
:root[data-theme="light"] .vp-divider {
  background: rgba(2, 6, 23, .10) !important;
}

:root[data-theme="light"] .vp-card {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08) !important;
}

:root[data-theme="light"] .vp-card:hover {
  background: var(--color-surface-2) !important;
}

:root[data-theme="light"] .vp-badge,
:root[data-theme="light"] .vp-short-badge {
  background: rgba(2, 6, 23, 0.65) !important;
  border-color: rgba(255, 255, 255, 0.20) !important;
  color: #fff !important;
}

:root[data-theme="light"] .vp-chip {
  background: rgba(2, 6, 23, .06) !important;
  border-color: rgba(2, 6, 23, .10) !important;
  color: rgba(2, 6, 23, .78) !important;
}

:root[data-theme="light"] .vp-short {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08) !important;
}

:root[data-theme="light"] .vp-modal-panel {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18) !important;
}

:root[data-theme="light"] .vp-modal-head {
  border-bottom-color: rgba(2, 6, 23, .10) !important;
}

:root[data-theme="light"] .vp-icon-btn {
  background: var(--color-surface-2) !important;
  border-color: var(--color-border) !important;
  color: var(--color-text) !important;
}

:root[data-theme="light"] .vp-player-placeholder {
  background: rgba(2, 6, 23, .03) !important;
  border-color: rgba(2, 6, 23, .18) !important;
}

:root[data-theme="light"] .vp-filter {
  background: var(--color-input-bg) !important;
  border-color: var(--color-border) !important;
  color: var(--color-text) !important;
}

:root[data-theme="light"] .vp-filter:hover {
  background: var(--color-surface-2) !important;
}

:root[data-theme="light"] .vp-filter-wrap::after {
  border-right-color: rgba(2, 6, 23, .55) !important;
  border-bottom-color: rgba(2, 6, 23, .55) !important;
}

/* ライトモード：上部タブ */
:root[data-theme="light"] .ss-tab {
  color: rgba(2, 6, 23, .70) !important;
}

:root[data-theme="light"] .ss-tab:hover {
  background: rgba(2, 6, 23, .05) !important;
}

:root[data-theme="light"] .ss-tab.is-active {
  color: var(--color-text) !important;
  background: transparent !important;
}

:root[data-theme="light"] .ss-tab.is-active::after {
  background: var(--color-text) !important;
}

/* ====== modal open時スクロール止め ====== */
html.vp-modal-open,
html.vp-modal-open body {
  overflow: hidden;
}

/* ====== iframe wrap ====== */
.vp-iframe-wrap {
  width: 100%;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.vp-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* shorts：9:16にする */
.vp-modal-panel.is-short .vp-iframe-wrap {
  aspect-ratio: 9 / 16;
  max-height: 78vh;
  margin: 0 auto;
}

/* ===== 上部タブをPCでも左揃えにする ===== */
@media (min-width: 951px) {
  .ss-header-inner {
    justify-content: flex-start;
  }

  .ss-gnav-scroll {
    justify-content: flex-start;
  }

  .ss-gnav {
    justify-content: flex-start;
    padding-left: 0;
  }
}

/* ダークモードだけ色味調整（lightを壊さない） */
:root:not([data-theme="light"]) .vp-divider {
  background: rgba(255, 255, 255, .08);
}

:root:not([data-theme="light"]) .vp-card {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .10);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}

:root:not([data-theme="light"]) .vp-card:hover {
  background: rgba(255, 255, 255, .06);
}

:root:not([data-theme="light"]) .vp-chip {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .84);
}

:root:not([data-theme="light"]) .vp-title,
:root:not([data-theme="light"]) .vp-card-title {
  color: rgba(255, 255, 255, .92);
}

:root:not([data-theme="light"]) .vp-desc,
:root:not([data-theme="light"]) .vp-sub,
:root:not([data-theme="light"]) .vp-short-tag {
  color: rgba(255, 255, 255, .62);
}

/* ==========================================================
   LIGHT THEME OVERRIDES (event.css) - extra for filter bar
========================================================== */
:root[data-theme="light"] .view-filter-container .controls {
  background: rgba(255, 255, 255, .85) !important;
  border-color: rgba(15, 23, 42, .10) !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}

:root[data-theme="light"] .view-filter-container .control label {
  color: #64748b !important;
}

:root[data-theme="light"] .view-filter-container .select-wrap select {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, .14) !important;
}

:root[data-theme="light"] .view-filter-container .select-wrap .select-caret {
  color: #64748b !important;
}

:root[data-theme="light"] .view-filter-container .applied-page-btn {
  border-color: rgba(37, 99, 235, .25) !important;
  background: rgba(37, 99, 235, .10) !important;
  color: #1d4ed8 !important;
}

:root[data-theme="light"] .view-filter-container .applied-page-btn:hover {
  background: rgba(37, 99, 235, .14) !important;
}