/*
Theme Name:  SWELL Child (DMM Affiliate)
Template:    swell
Version:     2.1.0
Description: DMM アフィリエイト用 SWELL 子テーマ — 完熟パイン UI
*/

/* ========================================
   完熟パイン カラー変数
======================================== */
:root {
  --yt-bg:          #0e0c07;   /* パイナップルナイト */
  --yt-surface:     #1c1900;   /* 深みのある暗色 */
  --yt-surface2:    #272200;
  --yt-border:      #3d3700;
  --yt-text:        #f5eed5;   /* 温かみのあるクリーム */
  --yt-text-sub:    #a89860;   /* ミュートゴールド */
  --yt-red:         #f5b800;   /* パイナップルゴールド（アクセント） */
  --yt-red-hover:   #c88800;   /* 深みのある琥珀 */
  --yt-chip-bg:     #272200;
  --yt-chip-active: #f5b800;
  --yt-chip-active-text: #0e0c07;
  --yt-radius:      12px;
  --yt-radius-sm:   8px;
}

/* ========================================
   ベースオーバーライド（SWELL向け）
======================================== */
body {
  background: var(--yt-bg) !important;
  color: var(--yt-text) !important;
}

/* ヘッダー上書き */
#header,
.l-header,
.p-headerBar {
  background: var(--yt-bg) !important;
  border-bottom: 1px solid var(--yt-border) !important;
  box-shadow: none !important;
}

/* フッター */
#footer,
.l-footer {
  background: var(--yt-surface) !important;
  color: var(--yt-text-sub) !important;
  border-top: 1px solid var(--yt-border);
}

/* リンク */
a { color: var(--yt-text); }
a:hover { color: #fff; }

/* 投稿本文エリア */
.p-postContent,
.p-postContent__body,
.l-main,
.l-content {
  background: transparent !important;
  color: var(--yt-text) !important;
}

/* ===== サイドバー横並びレイアウト（SWELL構造に合わせる） ===== */
/* l-content が flex コンテナ → l-mainContent と l-sidebar を横並びに */
.l-content {
  display: flex !important;
  align-items: flex-start !important;
  gap: 32px !important;
}

.l-mainContent {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.l-sidebar {
  flex: 0 0 300px !important;
  width: 300px !important;
  background: transparent !important;
}

@media (max-width: 960px) {
  .l-content {
    flex-direction: column !important;
  }
  .l-sidebar {
    flex: 0 0 auto !important;
    width: 100% !important;
  }
}
.widget {
  background: var(--yt-surface) !important;
  border: 1px solid var(--yt-border) !important;
  border-radius: var(--yt-radius) !important;
  color: var(--yt-text) !important;
  margin-bottom: 16px;
  padding: 16px !important;
}

/* ページネーション */
.p-pagination a,
.page-numbers {
  background: var(--yt-surface2) !important;
  color: var(--yt-text) !important;
  border: none !important;
  border-radius: 6px !important;
}
.p-pagination .current,
.page-numbers.current {
  background: var(--yt-text) !important;
  color: var(--yt-bg) !important;
}

/* ========================================
   カテゴリチップバー（アーカイブ上部）
======================================== */
.yt-chip-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--yt-bg);
  border-bottom: 1px solid var(--yt-border);
  margin: 0 -20px 24px;
  padding-left: 20px;
  padding-right: 20px;
}
.yt-chip-bar::-webkit-scrollbar { display: none; }

.yt-chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: var(--yt-chip-bg);
  color: var(--yt-text);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.yt-chip:hover {
  background: var(--yt-border);
  color: #fff;
}
.yt-chip.active {
  background: var(--yt-chip-active);
  color: var(--yt-chip-active-text);
}

/* ========================================
   アーカイブ — カードグリッド
======================================== */
.yt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 12px;
}
@media (max-width: 1200px) { .yt-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .yt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .yt-grid { grid-template-columns: 1fr; } }

/* ── カード本体 ── */
.yt-card {
  border-radius: var(--yt-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s;
  background: transparent;
}
.yt-card:hover { transform: translateY(-2px); }
.yt-card a { text-decoration: none; color: inherit; display: block; }

/* サムネイル */
.yt-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--yt-radius);
  background: var(--yt-surface);
}
.yt-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s;
}
.yt-card:hover .yt-card-thumb img { transform: scale(1.04); }

/* 価格バッジ（YouTube の再生時間バッジ風） */
.yt-price-badge {
  position: absolute;
  bottom: 6px;
  right: 8px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

/* 新着バッジ */
.yt-new-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--yt-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* カード情報エリア */
.yt-card-info {
  display: flex;
  gap: 10px;
  padding: 10px 2px 6px;
}

/* アバター（メーカーアイコン風） */
.yt-channel-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--yt-surface2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--yt-text-sub);
  overflow: hidden;
  margin-top: 2px;
}

.yt-card-meta { flex: 1; min-width: 0; }
.yt-card-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--yt-text);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-card-channel {
  font-size: 0.75rem;
  color: var(--yt-text-sub);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yt-card-stats {
  font-size: 0.72rem;
  color: var(--yt-text-sub);
}

/* ========================================
   詳細ページ（YouTube 視聴ページ風）
======================================== */
.yt-watch {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .yt-watch { grid-template-columns: 1fr; }
}

/* 左：メイン動画エリア */
.yt-watch-main {}

.yt-watch-thumb {
  width: 100%;
  border-radius: var(--yt-radius);
  overflow: hidden;
  background: var(--yt-surface);
  aspect-ratio: 2 / 3;
  max-width: 480px;
  margin: 0 auto;
}
.yt-watch-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-watch-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--yt-text);
  line-height: 1.5;
  margin: 14px 0 8px;
}

.yt-watch-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--yt-border);
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: var(--yt-text-sub);
}
.yt-watch-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--yt-red);
}

/* チャンネル行（メーカー） */
.yt-channel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--yt-border);
  margin-bottom: 16px;
}
.yt-channel-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yt-surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--yt-text-sub);
  flex-shrink: 0;
}
.yt-channel-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--yt-text);
}
.yt-channel-sub {
  font-size: 0.75rem;
  color: var(--yt-text-sub);
}

/* 購入ボタン */
.yt-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--yt-red);
  color: #fff !important;
  text-decoration: none !important;
  padding: 12px 24px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.15s, transform 0.1s;
  margin-left: auto;
}
.yt-buy-btn:hover {
  background: var(--yt-red-hover);
  transform: scale(1.02);
  color: #fff !important;
}

/* 右：サイドパネル（スペック） */
.yt-watch-side {
  background: var(--yt-surface);
  border-radius: var(--yt-radius);
  padding: 18px;
  border: 1px solid var(--yt-border);
}
.yt-side-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--yt-text-sub);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* スペックテーブル（線なし・リスト風） */
.yt-spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.yt-spec tr { border: none; }
.yt-spec th {
  padding: 6px 10px 6px 0;
  color: var(--yt-text-sub);
  font-weight: 600;
  white-space: nowrap;
  width: 80px;
  vertical-align: top;
}
.yt-spec td {
  padding: 6px 0;
  color: var(--yt-text);
  vertical-align: top;
  line-height: 1.6;
}

/* タグ */
.yt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.yt-tag {
  background: var(--yt-surface2);
  color: var(--yt-text-sub);
  border-radius: 4px;
  padding: 2px 9px;
  font-size: 0.72rem;
}

/* ========================================
   投稿本文（Gutenbergブロック）ダーク対応
======================================== */

/* 既存投稿の重複スペックテーブル・ボタンを非表示
   （single.php の PHP コードで表示するため本文内では不要） */
.yt-watch-main .p-postContent__body .dmm-spec,
.yt-watch-main .p-postContent__body figure.dmm-spec,
.yt-watch-main .p-postContent__body .wp-block-buttons {
  display: none !important;
}

.p-postContent__body table,
.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
  color: var(--yt-text);
}
.p-postContent__body td,
.p-postContent__body th,
.wp-block-table td,
.wp-block-table th {
  border: none !important;
  padding: 7px 12px !important;
  background: transparent !important;
  color: var(--yt-text) !important;
}
.wp-block-button__link {
  background: var(--yt-red) !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
  color: #fff !important;
}
.wp-block-button__link:hover {
  background: var(--yt-red-hover) !important;
}

/* ========================================
   アーカイブページヘッダー
======================================== */
.yt-archive-header {
  padding: 16px 0 0;
}
.yt-archive-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--yt-text);
  margin-bottom: 4px;
}
.yt-archive-count {
  font-size: 0.78rem;
  color: var(--yt-text-sub);
  margin-bottom: 0;
}

/* ========================================
   行動科学UI — 社会的証明・CTA強化
======================================== */

/* ── 社会的証明バー ── */
.yt-social-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 16px;
  font-size: 0.8rem;
  color: var(--yt-text-sub);
}

/* 閲覧中ライブバッジ */
.yt-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 0, 0, 0.12);
  border: 1px solid rgba(255, 0, 0, 0.25);
  color: #ff8080;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}
.yt-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--yt-red);
  border-radius: 50%;
  animation: yt-blink 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes yt-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.yt-hot-label {
  background: rgba(255,140,0,0.15);
  color: #ffaa44;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 600;
}
.yt-volume-label {
  color: var(--yt-text-sub);
  font-size: 0.78rem;
}

/* ── アバブザフォールドCTA ── */
.yt-main-cta {
  background: linear-gradient(135deg, rgba(245,184,0,0.08), rgba(245,184,0,0.04));
  border: 1px solid rgba(245,184,0,0.25);
  border-radius: var(--yt-radius);
  padding: 20px;
  margin: 0 0 20px;
  text-align: center;
}
.yt-cta-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}
.yt-cta-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--yt-red);
  line-height: 1;
}
.yt-cta-price-note {
  font-size: 0.78rem;
  color: var(--yt-text-sub);
}

/* ============================================
   CTA ボタン — シマー + 星キラッ アニメーション
============================================ */
@keyframes yt-shimmer {
  0%   { left: -90%; }
  100% { left: 160%; }
}
@keyframes yt-star-twinkle {
  0%, 80%, 100% { opacity: 0; transform: scale(0.5) rotate(-10deg); }
  88%           { opacity: 1; transform: scale(1.4) rotate(15deg);
                  text-shadow: 0 0 6px #fff8d0, 0 0 14px #f5b800, 0 0 28px #f5b800; }
}
@keyframes yt-glow-pulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(245,184,0,0.45), 0 2px 4px rgba(0,0,0,0.5); }
  50%       { box-shadow: 0 4px 32px rgba(245,184,0,0.8), 0 0 0 4px rgba(245,184,0,0.18), 0 2px 4px rgba(0,0,0,0.5); }
}

/* メインCTAボタン（パイナップルゴールド） */
.yt-cta-btn {
  display: block;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #b87800 0%, #f5b800 45%, #b87800 100%);
  color: #1a1200 !important;
  text-decoration: none !important;
  padding: 16px 28px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  animation: yt-glow-pulse 2.5s ease-in-out infinite;
  transition: transform 0.15s;
  cursor: pointer;
  border: none;
}
/* シマーライン */
.yt-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -90%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.5) 50%,
    transparent 100%);
  transform: skewX(-18deg);
  animation: yt-shimmer 2.5s ease-in-out infinite;
  pointer-events: none;
}
/* 星キラッ */
.yt-cta-btn::after {
  content: '★';
  position: absolute;
  top: 7px;
  right: 12px;
  font-size: 0.85rem;
  color: #fff8a0;
  animation: yt-star-twinkle 2.5s ease-in-out infinite;
  pointer-events: none;
}
.yt-cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  animation: none;
  box-shadow: 0 6px 28px rgba(245,184,0,0.7);
  color: #1a1200 !important;
}

/* セカンダリCTAボタン */
.yt-btn-more {
  display: block;
  text-align: center;
  position: relative;
  background: #1c1900;
  border: 1.5px solid #f5b800;
  color: #f5b800 !important;
  text-decoration: none !important;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
  cursor: pointer;
}
.yt-btn-more::before {
  content: '▶ ';
  font-size: 0.7rem;
  opacity: 0.7;
}
.yt-btn-more:hover {
  background: #2a2200;
  border-color: #ffd040;
  transform: translateY(-1px);
  color: #fff !important;
}

.yt-cta-btn-lg {
  padding: 16px 48px;
  font-size: 1.05rem;
  display: block;
  text-align: center;
}
/* 旧 pulse は削除済み */

.yt-cta-free-note {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: var(--yt-text-sub);
}

/* ── 下部CTA ── */
.yt-bottom-cta {
  background: var(--yt-surface);
  border: 1px solid var(--yt-border);
  border-radius: var(--yt-radius);
  padding: 24px 20px;
  margin: 28px 0;
  text-align: center;
}
.yt-bottom-cta-check {
  font-size: 0.9rem;
  color: var(--yt-text);
  margin-bottom: 14px;
  font-weight: 600;
}
.yt-bottom-cta-sub {
  font-size: 0.72rem;
  color: var(--yt-text-sub);
  margin-top: 10px;
}

/* ── サイドパネルCTA ── */
.yt-side-cta {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--yt-border);
}
.yt-side-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yt-red);
  margin-bottom: 12px;
  text-align: center;
}
.yt-side-social {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  font-size: 0.76rem;
  color: var(--yt-text-sub);
}

/* ── フローティングCTAバー ── */
.yt-float-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: rgba(15, 15, 15, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--yt-border);
  padding: 12px 24px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.yt-float-bar--visible {
  transform: translateY(0);
}
.yt-float-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.yt-float-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--yt-text-sub);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yt-float-price {
  font-weight: 700;
  color: var(--yt-red);
  font-size: 0.95rem;
}
.yt-float-sep { color: var(--yt-border); }
.yt-float-btn {
  display: inline-block;
  background: var(--yt-red);
  color: #1a1200 !important;
  text-decoration: none !important;
  padding: 11px 28px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}
.yt-float-btn:hover {
  background: var(--yt-red-hover) !important;
  color: #1a1200 !important;
}

/* ── タグ（詳細ページ） ── */
.yt-post-tags {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--yt-border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.yt-post-tags a {
  background: var(--yt-surface2);
  color: var(--yt-text-sub) !important;
  text-decoration: none !important;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.76rem;
}
.yt-post-tags a:hover { color: var(--yt-text) !important; }

/* ── 関連作品グリッド ── */
.yt-related {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--yt-border);
}
.yt-related-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--yt-text);
  margin-bottom: 14px;
}
.yt-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 600px) {
  .yt-related-grid { grid-template-columns: repeat(2, 1fr); }
}
.yt-related-card {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
}
.yt-related-card:hover .yt-related-thumb img { transform: scale(1.04); }
.yt-related-thumb {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--yt-radius-sm);
  background: var(--yt-surface);
}
.yt-related-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}
.yt-related-nothumb {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--yt-text-sub); font-size: 1.5rem;
}
.yt-related-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0);
  color: rgba(255,255,255,0);
  font-size: 2rem;
  transition: background 0.2s, color 0.2s;
}
.yt-related-card:hover .yt-related-play {
  background: rgba(0,0,0,0.4);
  color: rgba(255,255,255,0.9);
}
.yt-related-card-title {
  font-size: 0.74rem;
  line-height: 1.4;
  margin-top: 6px;
  color: var(--yt-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   アーカイブ — ホバープレイ・バッジ追加
======================================== */

/* ホバー再生オーバーレイ */
.yt-card-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0);
  transition: background 0.2s;
}
.yt-card:hover .yt-card-play-overlay {
  background: rgba(0,0,0,0.35);
}
.yt-card-play-btn {
  width: 48px; height: 48px;
  background: rgba(245,184,0,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s;
}
.yt-card:hover .yt-card-play-btn {
  opacity: 1;
  transform: scale(1);
}

/* 人気バッジ */
.yt-hot-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(255, 140, 0, 0.9);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

/* 収録時間バッジ */
.yt-duration-badge {
  position: absolute;
  bottom: 6px; left: 8px;
  background: rgba(0,0,0,0.75);
  color: #ccc;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 3px;
}

/* ========================================
   汎用ユーティリティ
======================================== */
.dmm-buy-btn {
  display: block;
  text-align: center;
  background: var(--yt-red);
  color: #fff !important;
  text-decoration: none !important;
  padding: 14px 24px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 700;
  margin: 20px 0;
  transition: background 0.15s, transform 0.1s;
}
.dmm-buy-btn:hover {
  background: var(--yt-red-hover);
  transform: translateY(-2px);
  color: #fff !important;
}

/* ========================================
   実データUI（FANZAレビュー・サンプルバッジ）
======================================== */

/* サンプルありバッジ */
.yt-sample-badge {
  position: absolute; bottom: 6px; left: 6px;
  background: rgba(0,0,0,0.75); color: #4ade80;
  font-size: 0.68rem; font-weight: 700;
  padding: 2px 7px; border-radius: 4px; z-index: 3;
}
.yt-sample-label {
  background: rgba(74,222,128,0.15);
  color: #4ade80; border: 1px solid rgba(74,222,128,0.3);
  font-size: 0.78rem; font-weight: 600;
  padding: 2px 10px; border-radius: 20px;
}

/* archive: レビュー星（FANZAの実データ） */
.yt-card-stars {
  display: flex; align-items: center; gap: 3px;
  font-size: 0.72rem; color: #f59e0b; margin: 2px 0;
}
.yt-card-rating { font-weight: 700; color: #f59e0b; }
.yt-card-rev-ct { color: var(--yt-text-sub); }

/* single: レビューバー（FANZAの実データ） */
.yt-review-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  background: var(--yt-surface2); border-radius: 8px;
  padding: 10px 16px; margin-bottom: 16px; font-size: 0.82rem;
}
.yt-review-stars { color: #f59e0b; font-size: 1.1rem; letter-spacing: 1px; }
.yt-review-score { font-weight: 700; color: #f59e0b; font-size: 1rem; }
.yt-review-count { color: var(--yt-text-sub); }

/* 価格表示 */
.yt-cta-price-note {
  font-size: 0.78rem; color: var(--yt-text-sub); margin-left: 8px;
}

/* ========================================
   single.php — 2カラムレイアウト
   [左] サンプル動画  [右] スペック+CTA
======================================== */

/* 2カラム行 */
.yt-detail-row {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  margin-bottom: 32px;
  align-items: start;
}
@media (max-width: 768px) {
  .yt-detail-row { grid-template-columns: 1fr; }
}

/* 左：動画エリア（中央揃え） */
.yt-detail-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.yt-video-wrap {
  width: 100%;
  background: #000;
  border-radius: var(--yt-radius);
  overflow: hidden;
  margin: 0 auto;
}
.yt-video-wrap iframe {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  display: block;
  border: none;
  margin: 0 auto;
}

/* サムネイルフォールバック */
.yt-video-thumb img {
  width: 100%;
  height: auto;
  border-radius: var(--yt-radius);
  display: block;
}

/* 右：スペックエリア */
.yt-detail-spec {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--yt-surface);
  border: 1px solid var(--yt-border);
  border-radius: var(--yt-radius);
  padding: 18px;
}

/* スペックテーブル内の価格 */
.yt-spec-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--yt-red);
}

/* CTA ボタン群（スペックパネル内） */
.yt-spec-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

/* .yt-btn-more は上部で定義済み */

/* ========================================
   single.php — サンプル画像ギャラリー
======================================== */
/* 本文テキストエリア — ボタンとの間に余白 */
.yt-post-body {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--yt-border);
}

.yt-gallery-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--yt-border);
}

/* WordPress gallery ブロックをダークに調整 */
.yt-gallery-wrap .blocks-gallery-grid,
.yt-gallery-wrap .wp-block-gallery {
  gap: 6px !important;
}
.yt-gallery-wrap figure.wp-block-image img,
.yt-gallery-wrap .blocks-gallery-item img {
  border-radius: 6px;
  object-fit: cover;
}

/* ========================================
   single.php — カテゴリリンク
======================================== */
.yt-cat-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
