/* ===== 動画詳細ページ ===== */
.v-page {
  padding-top: 28px;
  padding-bottom: 20px;
  max-width: 1440px;
  margin: 0 auto;
}
.v-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--side);
  gap: 40px;
  align-items: start;
}
.v-player {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
}
.v-player > img,
.v-player > .ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.v-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.25);
  transition: 0.2s;
}
.v-play:hover {
  background: rgba(0, 0, 0, 0.35);
}
.v-play i {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.v-play i svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
  stroke: none;
  margin-left: 5px;
}
.v-play .dur {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
}
.v-play .dur svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}
.v-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(6px);
  color: #fff;
}
.v-lock b {
  font-size: 20px;
}
.v-lock p {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 8px;
}
.v-lock .lk-btns {
  justify-content: center;
  margin-top: 18px;
}
.v-lock .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.v-crumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.v-crumb a:hover {
  color: var(--text);
}
.v-badges {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.v-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface-2);
}
.v-badge.cat {
  font-family: var(--font-en);
  letter-spacing: 0.06em;
  background: var(--text);
  color: var(--surface);
}
.v-badge.prem {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--gold-bg);
  color: var(--gold-ink);
  box-shadow: inset 0 0 0 1px rgba(184, 134, 11, 0.25);
}
.v-badge.prem .crown {
  width: 15px;
  height: 15px;
  color: #c08a00;
}
.v-badge.free {
  background: var(--accent);
  color: #fff;
}
.v-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.45;
  margin-top: 10px;
}
.v-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.v-who {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.v-who .avs .av + .av {
  margin-left: -14px;
}
.v-who b {
  font-size: 15px;
}
.v-who small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.v-acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.v-acts .btn {
  height: 40px;
  padding: 0 16px;
  font-size: 13px;
}
.v-acts .btn svg {
  width: 16px;
  height: 16px;
}
.v-acts .btn.on {
  border-color: var(--accent);
  color: var(--accent-dk);
}
.v-acts .btn.on svg {
  stroke: currentColor;
}
.v-sec {
  margin-top: 32px;
}
.v-sec h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.v-sec h2::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--text);
}
.v-desc {
  font-size: 15px;
  line-height: 2;
}
.v-desc p + p {
  margin-top: 8px;
}
.v-desc .lead {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 10px;
}
.v-side {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.v-rel {
  margin-top: 48px;
}
@media (max-width: 1080px) {
  .v-layout {
    grid-template-columns: 1fr;
  }
  .v-side {
    position: static;
  }
}
@media (max-width: 760px) {
  .v-page {
    padding-top: 0;
  }
  .v-player {
    border-radius: 0;
    margin: 0 -16px;
  }
  .v-play i {
    width: 64px;
    height: 64px;
  }
  .v-lock b {
    font-size: 17px;
  }
  .v-lock p {
    font-size: 13px;
  }
  .v-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .v-acts {
    width: 100%;
  }
  .v-acts .btn {
    flex: 1;
    justify-content: center;
    padding: 0 6px;
    font-size: 12px;
  }
  .v-title {
    font-size: 22px;
  }
}

/* シェアメニュー */
.v-share {
  position: relative;
}
.v-share-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  padding: 6px;
  display: grid;
}
.v-share-menu[hidden] {
  display: none;
}
.v-share-menu a,
.v-share-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}
.v-share-menu a:hover,
.v-share-menu button:hover {
  background: var(--surface-2);
}
.v-share-menu svg {
  width: 18px;
  height: 18px;
  flex: none;
}
#shLine svg {
  color: var(--line);
}
#shFb svg {
  color: #1877f2;
}
/* 動画情報 */
.v-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  margin-top: 24px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.v-info > div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  background: var(--surface);
  padding: 14px 16px;
}
.v-info svg {
  grid-row: 1/3;
  width: 20px;
  height: 20px;
  color: var(--accent-dk);
}
[data-theme="dark"] .v-info svg {
  color: var(--accent);
}
.v-info dt {
  font-size: 11px;
  color: var(--muted);
}
.v-info dd {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 600;
}
.v-info dd small {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}
@media (max-width: 760px) {
  .v-info {
    grid-template-columns: 1fr 1fr;
  }
  .v-share {
    flex: 1;
    display: flex;
  }
  .v-share > .btn {
    flex: 1;
  }
  .v-share-menu {
    right: 0;
    left: auto;
  }
}

/* ===== 講師（タイトル下の行） ===== */
.v-who .avs {
  display: flex;
}
.v-who .avs .av {
  width: 44px;
  height: 44px;
  font-size: 16px;
  border: 2px solid var(--bg);
}
.v-who .avs .av.more {
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
}
/* ===== この動画について ===== */
.v-info dd a small {
  margin-left: 6px;
}
.v-tagrow {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.v-tagh {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 12px;
}
.v-tagh b {
  font-size: 14px;
}
.v-tagh small {
  font-size: 12px;
  color: var(--muted);
}
.v-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.v-tags a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 14px;
  font-weight: 700;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.v-tags a span {
  color: var(--accent-dk);
  font-family: var(--font-en);
}
[data-theme="dark"] .v-tags a span {
  color: var(--accent);
}
.v-tags a i {
  font-style: normal;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 4px;
}
.v-tags a:hover {
  border-color: var(--text);
}
/* ===== 講師セクション ===== */
.v-inst .ph {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: 14px;
}
.v-inst .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  transition: transform 0.4s;
}
.v-inst a:hover .ph img {
  transform: scale(1.04);
}
.v-inst .ph-i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 48px;
  font-weight: 700;
  color: var(--muted);
}
/* 1名：大きな写真＋紹介 */
.v-inst1 {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color 0.2s;
}
.v-inst1:hover {
  border-color: var(--text);
}
.v-inst1 .ph {
  aspect-ratio: 3/4;
}
.v-inst1 .en {
  display: block;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}
.v-inst1 b {
  display: block;
  font-size: 22px;
  margin-top: 4px;
}
.v-inst1 small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.v-inst1 p {
  font-size: 14px;
  line-height: 1.85;
  margin-top: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v-inst1 .go {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
}
/* 複数名：縦長の写真カード */
.v-inst.many {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.v-inst.many .ph {
  aspect-ratio: 3/4;
}
.v-inst.many b {
  display: block;
  margin-top: 10px;
  font-size: 15px;
}
.v-inst.many small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
/* ===== AIアシスト ===== */
.v-ai {
  padding: 0 !important;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.v-main .v-ai {
  margin-top: 28px;
}
.v-ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.v-ai-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.v-ai-title b {
  font-size: 16px;
}
.ai-ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--lime), #5fa8d3);
  color: #fff;
}
.ai-ic svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.v-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gold-bg);
  color: var(--gold-ink);
  font-size: 11px;
  font-weight: 700;
}
.v-ai-badge svg {
  width: 12px;
  height: 12px;
}
.v-ai-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-2);
}
.v-ai-tabs button {
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.v-ai-tabs button.on {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.v-ai-body {
  position: relative;
  padding: 20px 22px 22px;
}
.v-ai-pane {
  display: none;
}
.v-ai-pane.on {
  display: block;
}
.ai-lead {
  font-size: 15px;
  line-height: 1.9;
}
.v-ai h4 {
  font-size: 13px;
  color: var(--muted);
  margin: 18px 0 8px;
}
.ai-pts {
  list-style: none;
  display: grid;
  gap: 10px;
}
.ai-pts li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.8;
}
.ai-pts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.ts {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  margin-left: 4px;
  border-radius: 6px;
  background: var(--surface-2);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  vertical-align: 1px;
}
.ts:hover {
  background: var(--text);
  color: var(--bg);
}
.ai-chap {
  list-style: none;
  counter-reset: c;
}
.ai-chap li + li {
  border-top: 1px solid var(--border);
}
.ai-chap button {
  width: 100%;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  text-align: left;
  border-radius: 8px;
}
.ai-chap button:hover {
  background: var(--surface-2);
}
.ai-chap .no {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.ai-chap b {
  font-size: 14px;
  font-weight: 500;
}
.ai-chap time {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.ai-chap li.on b,
.ai-chap li.on time {
  color: var(--text);
  font-weight: 700;
}
.ai-chap li.on .no {
  color: var(--accent-dk);
}
.ai-note {
  margin-top: 16px;
  font-size: 11px;
  color: var(--muted);
}
/* ロック（無料会員・未ログイン） */
.v-ai-lock {
  display: none;
}
.v-ai.locked .v-ai-pane {
  filter: blur(6px);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
  max-height: 220px;
  overflow: hidden;
}
.v-ai.locked .v-ai-lock {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  padding: 20px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent) 30%);
}
.lk-in {
  text-align: center;
  max-width: 420px;
}
.lk-ic {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--text);
  color: var(--bg);
}
.lk-in b {
  display: block;
  font-size: 15px;
}
.lk-in p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.lk-btns {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.lk-btns .btn {
  height: 40px;
  padding: 0 18px;
  font-size: 13px;
}
@media (max-width: 760px) {
  .v-who .avs .av {
    width: 38px;
    height: 38px;
  }
  .v-ai {
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .v-ai-head {
    padding: 14px 16px;
  }
  .v-ai-tabs {
    width: 100%;
  }
  .v-ai-tabs button {
    flex: 1;
  }
  .v-ai-body {
    padding: 16px;
  }
  .ai-lead {
    font-size: 14px;
  }
  .v-inst1 {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    padding: 12px;
  }
  .v-inst1 b {
    font-size: 18px;
  }
  .v-inst1 p {
    -webkit-line-clamp: 2;
    font-size: 13px;
  }
  .v-inst.many {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    margin: 0 -16px;
    padding: 0 16px 6px;
    scroll-padding: 0 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .v-inst.many a {
    flex: 0 0 38%;
    scroll-snap-align: start;
  }
  .v-tagrow {
    padding: 14px;
  }
  .v-tags a {
    height: 36px;
    font-size: 13px;
  }
}

/* 右カラム（PC）：AIアシストは幅に合わせて詰める */
.side .v-ai-head {
  flex-direction: column;
  align-items: stretch;
  padding: 14px 16px;
}
.side .v-ai-tabs button {
  flex: 1;
}
.side .v-ai-body {
  padding: 16px;
  max-height: 520px;
  overflow: auto;
  scrollbar-width: thin;
}
.side .ai-lead {
  font-size: 14px;
  line-height: 1.85;
}
.side .ai-pts li {
  font-size: 13px;
}
.side .ai-chap button {
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  padding: 10px 4px;
}
.side .ai-chap b {
  font-size: 13px;
}
.side .v-ai.locked .v-ai-body {
  overflow: hidden;
}
.side .lk-btns {
  flex-direction: column;
}
/* 右カラム：マイリスト */
.v-ml-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.v-ml-h .more {
  font-size: 12px;
  font-weight: 700;
}
.v-ml-list a.cur {
  background: var(--surface-2);
  border-radius: 10px;
}
.v-ml-empty {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  padding: 6px 0;
}
.v-ml-empty .btn {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  height: 40px;
}
.v-ml-more {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 0 2px;
}
@media (max-width: 760px) {
  .v-info > div:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }
}
