/* ============================================
   Kohei Okumura - Media page
   style.css の :root 変数をそのまま使う（配色を変えたいときは style.css 側だけ直す）
   ============================================ */

.media-page {
  background: var(--bg);
  /* .nav（position:fixed）の高さ。絞り込みバーの居場所を決める。
     実測値は media.js が起動時とリサイズ時に上書きする（ロゴが折り返すと高さが変わるため）。 */
  --navh: 65px;
}

/* ---------- ナビの現在地 ---------- */
.nav__menu a.is-current {
  color: var(--accent);
}

/* ---------- ページ見出し ---------- */
.mhero {
  position: relative;
  padding: 148px var(--pad) 56px;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 12% 0%, rgba(0, 224, 255, 0.10), transparent 60%),
    radial-gradient(50% 70% at 88% 10%, rgba(124, 92, 255, 0.12), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.mhero__inner { max-width: var(--max); margin: 0 auto; }
.mhero__eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--accent);
}
.mhero__title {
  margin: 0 0 20px;
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: 0.01em;
}
.mhero__lead {
  margin: 0 0 34px;
  max-width: 46em;
  color: var(--text-sub);
  font-size: 15px;
}
.mhero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.mhero__stats li {
  min-width: 116px;
  flex: 0 0 auto;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.mhero__stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mhero__stats span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}
.mhero__back a {
  font-size: 13px;
  color: var(--text-sub);
  transition: color .25s;
}
.mhero__back a:hover { color: var(--accent); }
.br-sp { display: none; }
@media (max-width: 560px) { .br-sp { display: inline; } }

/* ---------- 絞り込み ---------- */
.mfilter {
  position: sticky;
  /* .nav が position:fixed で上に居座るので、その高さぶん下げないと潜り込んで押せなくなる */
  top: var(--navh);
  z-index: 90;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 15, 0.82);
  border-bottom: 1px solid var(--border);
}
.mfilter__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mfilter__inner::-webkit-scrollbar { display: none; }
.mfilter__btn {
  flex: 0 0 auto;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-sub);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color .25s, border-color .25s, background .25s;
}
.mfilter__btn:hover { color: var(--text); border-color: var(--border-strong); }
.mfilter__btn.is-active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

/* ---------- セクション ---------- */
.mmain {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 96px;
}
.msec {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.msec:last-of-type { border-bottom: 0; }
.msec[hidden] { display: none; }
.msec__head { margin-bottom: 30px; }
.msec__type {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 16px;
  background: rgba(0, 224, 255, 0.1);
  border: 1px solid rgba(0, 224, 255, 0.3);
  color: var(--accent);
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  border-radius: 4px;
}
.msec__title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 900;
  line-height: 1.3;
}
.msec__blurb {
  margin: 0 0 8px;
  max-width: 52em;
  color: var(--text-sub);
  font-size: 14px;
}
.msec__meta {
  margin: 0 0 8px;
  color: var(--text-mute);
  font-size: 13px;
}
.msec__links a {
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.msec__links a:hover { border-bottom-color: var(--accent); }
.sub-head {
  margin: 44px 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.note {
  margin: 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  color: var(--text-mute);
  font-size: 13px;
}

/* ---------- チャンネル全体プレイヤー ---------- */
.chplayer {
  margin: 0 0 8px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid rgba(0, 224, 255, 0.24);
  border-radius: 14px;
}
.chplayer iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: #000;
}
.chplayer__note {
  margin: 12px 2px 0;
  font-size: 12px;
  color: var(--text-mute);
}

/* ---------- 動画カード ---------- */
.vgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 620px) { .vgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .vgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .vgrid--short { grid-template-columns: repeat(4, 1fr); } }

.vcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.vcard:hover { transform: translateY(-4px); border-color: var(--accent); }
.vcard__thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.vcard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s, opacity .3s;
}
.vcard__thumb:hover img { transform: scale(1.045); opacity: .82; }
.vcard__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.vcard__play svg { width: 62px; height: 44px; }
.vcard__play svg .bg { fill: rgba(7, 9, 15, 0.72); transition: fill .25s; }
.vcard__play svg .tri { fill: #fff; }
.vcard__thumb:hover .vcard__play svg .bg { fill: #ff0033; }
.vcard__thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vcard iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}
.vcard__body { padding: 16px 18px 18px; }
.vcard__tags { display: flex; gap: 6px; margin-bottom: 8px; }
.vcard__tags:empty { display: none; }
.vcard__badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(124, 92, 255, 0.14);
  border: 1px solid rgba(124, 92, 255, 0.34);
  color: #b9a8ff;
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.vcard__badge--short {
  background: rgba(255, 0, 51, 0.12);
  border-color: rgba(255, 0, 51, 0.3);
  color: #ff8095;
}
.vcard__title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vcard__meta {
  margin: 0;
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-mute);
}
.vcard__outlet {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-sub);
}
.vcard__links {
  margin: 10px 0 0;
  font-size: 12px;
}
.vcard__links a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.vcard__links a:hover { border-bottom-color: var(--accent); }
.vcard__summary {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-mute);
}

/* ---------- 放送回リスト ---------- */
.ep-list { margin: 0; padding: 0; list-style: none; }
.ep {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 4px 18px;
  padding: 18px 4px;
  border-top: 1px solid var(--border);
  align-items: start;
}
.ep:last-child { border-bottom: 1px solid var(--border); }
@media (min-width: 760px) {
  .ep { grid-template-columns: 88px 1fr auto; align-items: center; }
}
.ep__no {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.ep__main { min-width: 0; }
.ep__date {
  margin: 0 0 4px;
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-mute);
}
.ep__guest {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}
.ep__role {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-sub);
}
.ep__headline {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}
.ep__summary {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-mute);
  max-width: 62em;
}
.ep__theme {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-mute);
  border-left: 2px solid rgba(124, 92, 255, 0.5);
  padding-left: 10px;
}
.ep__links {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
@media (min-width: 760px) {
  .ep__links { grid-column: auto; margin-top: 0; justify-content: flex-end; }
}
.ep__play {
  padding: 7px 14px;
  font-family: inherit;
  font-size: 12px;
  color: var(--accent);
  background: rgba(0, 224, 255, 0.08);
  border: 1px solid rgba(0, 224, 255, 0.32);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .25s, color .25s;
}
.ep__play:hover { background: var(--accent); color: var(--bg); }
.ep__press {
  padding: 7px 14px;
  font-size: 12px;
  color: var(--text-sub);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  white-space: nowrap;
  transition: color .25s, border-color .25s;
}
.ep__press:hover { color: var(--text); border-color: var(--accent); }

/* 「予告を見る」で行の下に開く再生枠 */
.ep-player {
  list-style: none;
  padding: 0 0 18px;
  border-top: 1px solid var(--border);
}
.ep-player iframe {
  display: block;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  margin: 16px auto 0;
  border: 0;
  border-radius: 10px;
  background: #000;
}

/* ---------- 単発の出演リスト ---------- */
.ent-list { margin: 0; padding: 0; list-style: none; }
.ent {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 18px 4px;
  border-top: 1px solid var(--border);
}
.ent:last-child { border-bottom: 1px solid var(--border); }
@media (min-width: 760px) { .ent { grid-template-columns: 118px 1fr; gap: 18px; } }
.ent[data-check="1"] { opacity: .62; }
.ent__date {
  margin: 0;
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-mute);
}
.ent__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.ent__title a { transition: color .25s; }
.ent__title a:hover { color: var(--accent); }
.ent__title .ext { font-size: 12px; color: var(--text-mute); }
.ent__chip {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  vertical-align: 2px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}
.ent__outlet { font-size: 13px; color: var(--text-sub); }
.ent__summary { margin: 6px 0 0; font-size: 13px; color: var(--text-mute); }

.mfoot-note {
  margin: 64px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-sub);
}
.mfoot-note a { color: var(--accent); border-bottom: 1px solid transparent; }
.mfoot-note a:hover { border-bottom-color: var(--accent); }

/* 動画を1本でも再生したら、その枠だけは動かさない（再生中に浮くと押しにくい） */
.vcard.is-playing { transform: none; border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .vcard, .vcard__thumb img { transition: none; }
  .vcard:hover { transform: none; }
}
