/* THE THOR CHILD - ユーザーカスタムCSS */
/* 独自のスタイルをここに追加できます */

/* 投稿本文内のリンクを水色＋下線に */
.l-wrapper .content a {
  color: #0066cc;
  text-decoration: underline;
}

.l-wrapper .content a:hover {
  color: #004499;
  font-weight: inherit;
}

/* 投稿一覧・カテゴリーページの archive__item の padding-bottom を削除 */
.blog .archive__item,
.category .archive__item {
  padding-bottom: 0;
}


/* =============================================
   解説動画アーカイブ、タクソノミー、詳細
============================================= */
@media screen and (max-width: 768px) {
  .ev-wrapper {
    display: flex !important;
    flex-direction: column-reverse;
  }
}

/* =============================================
   解説動画アーカイブページ
============================================= */

/* シリーズナビゲーション（左サイドバー） */
.ev-sidebar {
  min-width: 240px;
}
@media screen and (max-width: 768px) {
  .ev-sidebar {
    width: 100%;
    margin-bottom: 40px;
  }
}

.ev-series-nav__title {
  font-size: 1.6rem;
  font-weight: bold;
  padding: 12px 16px;
  margin: 0;
  border-bottom: 1px solid #ddd;
}

.ev-series-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ev-series-nav__item {
  border-bottom: 1px solid #eee;
}

.ev-series-nav__item a {
  display: block;
  padding: 12px 16px;
  color: inherit;
  text-decoration: none;
  font-size: 1.4rem;
  transition: background 0.2s;
}

.ev-series-nav__item a:hover {
  background: rgba(0, 0, 0, 0.03);
}

.ev-series-nav__item.is-active a {
  font-weight: bold;
  background: rgba(0, 0, 0, 0.05);
}

/* アーカイブ説明文 */
.ev-archive-description {
  font-size: 1.4rem;
  color: #666;
  margin-top: 8px;
}

/* 動画カード一覧 */
.ev-video-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ev-video-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.ev-video-card:first-child {
  padding-top: 0;
}

.ev-video-card:hover {
  opacity: 0.8;
}

/* サムネイル */
.ev-video-card__thumb {
  position: relative;
  flex-shrink: 0;
  width: 200px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.ev-video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ev-video-card__no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
  color: #999;
  font-size: 1.2rem;
}

/* 再生時間バッジ */
.ev-video-card__duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 1.2rem;
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1.4;
}

/* カード情報 */
.ev-video-card__info {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.ev-video-card__title {
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0 0 8px;
  line-height: 1.5;
}

.ev-video-card__new {
  display: inline-block;
  background: #333;
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

.ev-video-card__meta {
  font-size: 1.3rem;
  color: #888;
}

.ev-video-card__series {
  display: inline-block;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  .ev-video-card__thumb {
    width: 140px;
  }

  .ev-video-card__title {
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 480px) {
  .ev-video-card {
    flex-direction: column;
    gap: 10px;
  }

  .ev-video-card__thumb {
    width: 100%;
  }
}

/* =============================================
   シリーズページ（タクソノミー）
   ============================================= */

/* シリーズ情報 */
.ev-series-info {
  margin-bottom: 24px;
}

.ev-series-info__description {
  font-size: 1.4rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.ev-series-info__summary {
  font-weight: bold;
  font-size: 1.5rem;
  margin-top: 12px;
}

/* カリキュラム */
.ev-curriculum__heading {
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #333;
}

.ev-curriculum__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ev-curriculum__item {
  border-bottom: 1px solid #eee;
}

.ev-curriculum__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  text-decoration: none;
  color: inherit;
  font-size: 1.4rem;
  transition: background 0.2s;
}

.ev-curriculum__link:hover {
  background: rgba(0, 0, 0, 0.02);
}

.ev-curriculum__episode {
  font-weight: bold;
  font-size: 1.4rem;
  white-space: nowrap;
}

.ev-curriculum__title {
  flex: 1;
  font-size: 1.5rem;
  font-weight: bold;
}

.ev-curriculum__duration {
  font-size: 1.3rem;
  color: #888;
  white-space: nowrap;
}

/* =============================================
   個別動画ページ
   ============================================= */

/* メタ情報 */
.ev-single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.3rem;
  color: #888;
  margin-bottom: 24px;
}

.ev-single-meta__series {
  color: #888;
  text-decoration: none;
}

.ev-single-meta__series:hover {
  text-decoration: underline;
}

/* 動画プレイヤー */
.ev-single-player {
  margin-bottom: 32px;
}

.ev-single-player iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 6px;
}

/* 本文 */
.ev-single-content {
  margin-bottom: 32px;
}

/* 前後ナビ */
.ev-episode-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.ev-episode-nav a {
  font-size: 1.4rem;
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}

.ev-episode-nav a:hover {
  text-decoration: underline;
}

.ev-episode-nav__prev {
  text-align: left;
}

.ev-episode-nav__next {
  text-align: right;
  margin-left: auto;
}