/* ============================================
   Chunk Master: Plus の入口（無料版だけ・期間限定）
   index.html の head で読む（ルールは全部 .cmt-* なので、部品を出さない人には何も効かない）。Plus の見た目（plus.css）に合わせた鍵つきの版
   ============================================ */

.cmt-tag {
  display: inline-block;
  margin-left: 7px;
  position: relative;
  top: -1px;
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 3px 5px 2px;
  border-radius: 100px;
  color: #0a0a0f;
  background: linear-gradient(135deg, var(--accent-hover), #A78BFA);
  vertical-align: middle;
}

/* 絞り込みの列の「Plus限定」（level-btn と同じ形・鍵つき） */
.cmt-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 10px 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(167, 139, 250, 0.45);
  background: transparent;
  color: #A78BFA;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.cmt-chip-lock { display: inline-flex; opacity: 0.85; }
.cmt-chip-lock svg { width: 11px; height: 11px; }

/* 「聞き流し」のカード（Plus の人のカードと同じ場所・形。右は再生ではなく鍵） */
.cmt-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(74, 158, 255, 0.22);
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.08), rgba(167, 139, 250, 0.06));
  color: var(--text-primary);
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}
.cmt-card:active { transform: scale(0.99); }
.cmt-card-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  color: var(--accent);
  opacity: 0.7;
}
.cmt-card-icon svg { width: 18px; height: 18px; }
.cmt-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; opacity: 0.75; }
.cmt-card-title { font-size: 0.875rem; font-weight: 600; line-height: 1.3; }
.cmt-card-sub { font-size: 0.6875rem; color: var(--text-secondary); line-height: 1.4; }
.cmt-card-lock {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}
.cmt-card-lock svg { width: 14px; height: 14px; }

/* 案内（下から出る画面。枠はチャンクの詳細と同じ modal-overlay / modal-content） */
.cmt-panel { padding: 22px 18px calc(20px + env(safe-area-inset-bottom)); }
.cmt-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--text-primary);
}
.cmt-plus {
  margin-left: 2px;
  background: linear-gradient(135deg, var(--accent-hover), #A78BFA);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cmt-lead { display: inline-block; margin: 10px 0 16px; padding: 6px 12px; border-radius: 10px; font-size: 0.875rem; font-weight: 700; color: #C4B5FD; background: rgba(167, 139, 250, 0.14); border: 1px solid rgba(167, 139, 250, 0.4); }
.cmt-rows { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.cmt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}
.cmt-row-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(167, 139, 250, 0.14);
  color: #A78BFA;
}
.cmt-row-icon svg { width: 18px; height: 18px; }
.cmt-row-text { min-width: 0; }
.cmt-row-text b { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text-primary); }
.cmt-row-text small { display: block; margin-top: 2px; font-size: 0.75rem; color: var(--text-secondary); }
.cmt-note { margin: 0 2px 16px; font-size: 0.8125rem; line-height: 1.7; color: var(--text-secondary); }
.cmt-note b { color: var(--text-primary); font-weight: 600; }
/* 当日来られない人への答え：上の「無料ライブの参加特典です」と同じ紫の箱。太字にはしない
   （Beat Master はアンバーのマーカーだが、この色調には合わないので紫に。2026-10-25 ディー） */
.cmt-mark { padding: 1px 5px; border-radius: 6px; color: #C4B5FD; background: rgba(167, 139, 250, 0.2); }
.cmt-go {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 54px;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  box-shadow: 0 10px 26px -12px var(--accent-glow);
  -webkit-tap-highlight-color: transparent;
}
.cmt-go:active { transform: scale(0.98); }
.cmt-go svg { width: 18px; height: 18px; }
.cmt-small { margin: 10px 0 0; text-align: center; font-size: 0.6875rem; font-weight: 600; color: var(--text-tertiary); }

/* 背の低い画面（iPhone SE で Safari の帯が出ている時など）：案内の青いボタンが最初から見えるように、行を詰める
   （見逃し配信の1文を足した分も、ここで詰めている。2026-10-25） */
@media (max-height: 800px) {
  .cmt-panel { padding-top: 16px; }
  .cmt-lead { margin: 6px 0 8px; }
  .cmt-rows { gap: 4px; margin-bottom: 10px; }
  .cmt-row { padding: 5px 10px; }
  .cmt-row-icon { width: 30px; height: 30px; }
  .cmt-row-text small { margin-top: 0; }
  .cmt-note { margin-bottom: 10px; line-height: 1.5; }
  .cmt-go { height: 50px; }
}
/* もっと低い時（SE で上下の帯が両方出ている時など）：行の説明を省いて、ボタンを最初の画面に入れる */
@media (max-height: 600px) {
  .cmt-row-text small { display: none; }
  .cmt-row-icon { width: 28px; height: 28px; }
}
/* 狭い画面で「す。」だけが次の行に落ちないように、ひとまとまりで折り返す */
.cmt-nw { display: inline-block; }
