/
/**
 * 《天眼行动》AI 回复 HTML 面板样式
 * SillyTavern / 酒馆 / AI风月（MUFY）等：粘贴到卡片「CSS 美化」
 * AI风月：须同时启用本文件，且 AI 输出带 class（见机制文档 status-top / teo-text）
 */

:root {
  --accent: #e53935;
  --text-muted: #a89898;
  --rarity-rare: #5b8def;
  --font-mono: Consolas, "Courier New", monospace;
}

/* ========== AI风月 / MUFY：气泡勿盖住内部面板 ========== */
img[src="/chat-star.png"],
img[src*="chat-star.png"] {
  display: none !important;
}

.mufy_ai_message_bubble {
  color: #e8e0e0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 2px 0 !important;
}

.mufy_ai_message_bubble::before,
.mufy_ai_message_bubble::after {
  display: none !important;
  content: none !important;
}

/* —— 思维链：仍由 AI 输出，界面隐藏 —— */
redacted_thinking,
.redacted_thinking,
.mufy_ai_message_bubble redacted_thinking,
.mufy_ai_message_bubble .redacted_thinking,
think,
.think,
.thinking,
reasoning,
.qwen-thinking,
[thinking] {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* —— 顶栏 · 时空（红黑色底） —— */
status-top,
.status-top,
.teo-status-top,
.mufy_ai_message_bubble status-top,
.mufy_ai_message_bubble .teo-status-top,
.mufy_ai_message_bubble .status-top {
  display: block !important;
  margin: 0 0 12px !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #e8e0e0 !important;
  background-color: #140a0a !important;
  background-image: linear-gradient(
    145deg,
    rgba(28, 12, 12, 0.98),
    rgba(10, 8, 8, 1)
  ) !important;
  border: 1px solid rgba(120, 40, 40, 0.55) !important;
  border-left: 3px solid #e53935 !important;
  border-radius: 4px !important;
  letter-spacing: 0.04em;
  box-sizing: border-box;
}

status-top time,
status-top location,
status-top weather,
status-top phase,
status-top bounty,
.teo-status-top time,
.teo-status-top location,
.teo-status-top weather,
.teo-status-top phase,
.teo-status-top bounty,
.mufy_ai_message_bubble status-top time,
.mufy_ai_message_bubble status-top location,
.mufy_ai_message_bubble status-top weather,
.mufy_ai_message_bubble status-top phase,
.mufy_ai_message_bubble status-top bounty {
  margin-right: 10px;
  color: #e8e0e0 !important;
}

status-top phase,
.teo-status-top phase,
.mufy_ai_message_bubble status-top phase {
  color: #7eb8ff !important;
  font-weight: 600;
}

/* —— 正文（红黑色底） —— */
text,
.text,
.teo-text,
.mufy_ai_message_bubble text,
.mufy_ai_message_bubble .teo-text,
.mufy_ai_message_bubble .text {
  display: block !important;
  margin: 0 0 16px !important;
  padding: 16px 18px 18px !important;
  line-height: 1.75 !important;
  font-size: 15px !important;
  color: #f2eded !important;
  background-color: #120909 !important;
  background-image: linear-gradient(
    145deg,
    rgba(28, 12, 12, 0.98),
    rgba(10, 8, 8, 1)
  ) !important;
  border: 1px solid rgba(120, 40, 40, 0.55) !important;
  border-left: 3px solid #e53935 !important;
  border-radius: 0 6px 6px 0 !important;
  box-shadow: inset 0 0 48px rgba(0, 0, 0, 0.45) !important;
  box-sizing: border-box;
}

text p,
.text p,
.teo-text p,
.mufy_ai_message_bubble text p,
.mufy_ai_message_bubble .teo-text p {
  margin: 0 0 1em !important;
  text-indent: 2em;
  color: #f2eded !important;
  background: transparent !important;
}

text p:last-of-type,
.text p:last-of-type {
  margin-bottom: 0;
}

/* 观众弹幕（叙事中的画外音，逃亡者不可见） */
danmaku,
.danmaku,
.dm,
.teo-text danmaku,
.mufy_ai_message_bubble danmaku,
.mufy_ai_message_bubble .teo-text danmaku {
  display: block;
  margin: 10px 0;
  padding: 8px 12px;
  font-size: 13px;
  color: #ffb4a8 !important;
  font-style: italic;
  border-left: 2px solid rgba(229, 57, 53, 0.75);
  background: rgba(229, 57, 53, 0.14) !important;
  border-radius: 0 4px 4px 0;
  text-indent: 0;
  text-shadow: none;
}

/* 内心独白 */
thought,
.thought,
text em,
.text em {
  color: #c8b6ff;
  font-style: italic;
}

/* —— 底栏面板 —— */
status-bottom,
.status-bottom {
  display: block;
  margin-top: 16px;
  padding: 12px 0 4px;
  border-top: 1px solid rgba(229, 57, 53, 0.35);
  font-size: 13px;
  color: #ccc;
}

status-bottom details,
.status-bottom details {
  margin: 6px 0;
  padding: 8px 10px;
  background: rgba(20, 12, 12, 0.85);
  border: 1px solid rgba(229, 57, 53, 0.25);
  border-radius: 4px;
}

status-bottom summary,
.status-bottom summary {
  cursor: pointer;
  font-weight: 600;
  color: #f5e6e6;
  letter-spacing: 0.06em;
  list-style: none;
}

status-bottom details > summary,
.status-bottom details > summary,
cast-roster details > summary,
.cast-roster details > summary,
cast-detail details > summary,
.cast-detail details > summary,
expert-roster details > summary,
.expert-roster details > summary,
memory-zone details > summary,
.memory-zone details > summary {
  list-style: none;
}

status-bottom details > summary::-webkit-details-marker,
.status-bottom details > summary::-webkit-details-marker,
cast-roster details > summary::-webkit-details-marker,
.cast-roster details > summary::-webkit-details-marker,
cast-detail details > summary::-webkit-details-marker,
.cast-detail details > summary::-webkit-details-marker,
expert-roster details > summary::-webkit-details-marker,
.expert-roster details > summary::-webkit-details-marker,
memory-zone details > summary::-webkit-details-marker,
.memory-zone details > summary::-webkit-details-marker {
  display: none;
}

status-bottom details:not([open]) > summary::before,
.status-bottom details:not([open]) > summary::before,
cast-roster details:not([open]) > summary::before,
.cast-roster details:not([open]) > summary::before,
cast-detail details:not([open]) > summary::before,
.cast-detail details:not([open]) > summary::before,
expert-roster details:not([open]) > summary::before,
.expert-roster details:not([open]) > summary::before,
memory-zone details:not([open]) > summary::before,
.memory-zone details:not([open]) > summary::before {
  content: "▸ ";
  color: #e53935;
}

status-bottom details[open] > summary::before,
.status-bottom details[open] > summary::before,
cast-roster details[open] > summary::before,
.cast-roster details[open] > summary::before,
cast-detail details[open] > summary::before,
.cast-detail details[open] > summary::before,
expert-roster details[open] > summary::before,
.expert-roster details[open] > summary::before,
memory-zone details[open] > summary::before,
.memory-zone details[open] > summary::before {
  content: "▾ ";
  color: #e53935;
}

item,
.item {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 4px 0;
  line-height: 1.5;
}

item label,
.item label {
  flex-shrink: 0;
  color: #888;
  min-width: 5em;
}

item value,
.item value {
  flex: 1;
  color: #ddd;
}

bar-container,
.bar-container {
  display: block;
  width: 100%;
  max-width: 280px;
  height: 8px;
  margin: 4px 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

bar-fill,
.bar-fill {
  display: block;
  height: 100%;
  min-width: 2%;
  background: linear-gradient(90deg, #8b1a1a, #e53935);
  font-size: 0;
  line-height: 8px;
  transition: width 0.3s ease;
}

bar-fill.heat,
.bar-fill.heat {
  background: linear-gradient(90deg, #b8860b, #ffd166);
}

bar-fill.safe,
.bar-fill.safe {
  background: linear-gradient(90deg, #2e6b4f, #7dd87d);
}

tip,
.tip {
  display: block;
  font-size: 11px;
  color: #666;
  margin-top: 2px;
}

trend,
.trend {
  display: block;
  margin: 6px 0;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.55;
  color: #bbb;
  background: rgba(0, 0, 0, 0.35);
  border-left: 2px solid #7eb8ff;
}

trend strong,
.trend strong {
  color: #7eb8ff;
}

suggest,
.suggest {
  display: block;
  margin: 8px 0;
  padding: 10px 12px;
  background: rgba(229, 57, 53, 0.06);
  border: 1px dashed rgba(229, 57, 53, 0.35);
  border-radius: 4px;
}

option,
.suggest option {
  display: block;
  font-weight: 600;
  color: #ff6b6b;
  margin-bottom: 4px;
}

desc,
.suggest desc {
  display: block;
  font-size: 12px;
  color: #999;
  line-height: 1.45;
}

expert-line,
.expert-line {
  display: block;
  margin: 6px 0;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.5;
  border-left: 2px solid rgba(126, 184, 255, 0.5);
  background: rgba(0, 0, 0, 0.25);
}

expert-line .role,
.expert-line .role {
  color: #7eb8ff;
  font-weight: 600;
}

divider,
.divider {
  display: block;
  height: 1px;
  margin: 10px 0;
  background: rgba(229, 57, 53, 0.2);
}

.badge-crime {
  display: inline-block;
  padding: 2px 8px;
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  color: #ffd166;
  border: 1px solid rgba(255, 209, 102, 0.5);
}

.badge-phase {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  color: #7eb8ff;
  border: 1px solid rgba(126, 184, 255, 0.4);
}

/* —— 记忆区 —— */
memory-zone,
.memory-zone {
  display: block;
  margin-top: 18px;
  padding: 0;
  font-size: 13px;
  color: #ccc;
}

memory-zone > details,
.memory-zone > details {
  padding: 10px 12px;
  background: linear-gradient(145deg, rgba(18, 14, 8, 0.95), rgba(8, 8, 10, 0.98));
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 20px rgba(0, 0, 0, 0.4);
}

memory-zone > details > summary,
.memory-zone > details > summary {
  font-size: 14px;
  color: #ffd166;
  letter-spacing: 0.12em;
}

memory-zone details:not([open]) > summary::before,
.memory-zone details:not([open]) > summary::before,
memory-zone details[open] > summary::before,
.memory-zone details[open] > summary::before {
  color: #ffd166;
}

memory-rule,
.memory-rule {
  display: block;
  margin: 8px 0 12px;
  padding: 8px 12px;
  font-size: 11px;
  line-height: 1.5;
  color: #a89f8f;
  background: rgba(0, 0, 0, 0.45);
  border: 1px dashed rgba(255, 209, 102, 0.3);
  border-radius: 4px;
  font-family: monospace;
  letter-spacing: 0.06em;
}

memory-rule strong,
.memory-rule strong {
  color: #ffd166;
}

memory-zone details details,
.memory-zone details details {
  margin: 8px 0;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 209, 102, 0.2);
}

memory-zone details details > summary,
.memory-zone details details > summary {
  font-size: 12px;
  color: #e8d4a8;
}

mem-list,
.mem-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
}

mem-entry,
.mem-entry {
  display: block;
  padding: 10px 12px;
  background: rgba(229, 57, 53, 0.06);
  border: 1px solid rgba(229, 57, 53, 0.28);
  border-left: 3px solid #e53935;
  border-radius: 0 4px 4px 0;
}

mem-archive,
.mem-archive {
  display: block;
  padding: 10px 12px;
  background: rgba(255, 209, 102, 0.05);
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-left: 3px solid #ffd166;
  border-radius: 0 4px 4px 0;
}

mem-meta,
.mem-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 6px;
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #888;
}

mem-day,
.mem-day,
mem-time,
.mem-time {
  color: #ff9a8b;
}

mem-slot,
.mem-slot {
  padding: 2px 6px;
  color: #ffd166;
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 2px;
}

mem-range,
.mem-range {
  color: #ffd166;
  font-weight: 600;
}

mem-id,
.mem-id {
  color: #666;
}

mem-body,
.mem-body {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: #ddd;
}

mem-empty,
.mem-empty {
  display: block;
  padding: 12px;
  font-size: 12px;
  color: #555;
  font-style: italic;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* 短期满 7 条时可在 mem-list.mem-short 上加 class="mem-full" */
mem-list.mem-full,
.mem-list.mem-full {
  box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.25);
}

mem-list.mem-full::before,
.mem-list.mem-full::before {
  content: "⚠ 已满，下轮将触发归档";
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  color: #ffd166;
  letter-spacing: 0.08em;
}

/* —— 角色档案卡 · 立绘（界面四风格） —— */
cast-roster,
.cast-roster {
  display: block;
  margin-bottom: 14px;
}

cast-roster > details,
.cast-roster > details {
  padding: 10px 12px 14px;
  background: rgba(40, 12, 12, 0.4);
  border: 1px solid rgba(229, 57, 53, 0.35);
  box-shadow: inset 0 0 48px rgba(0, 0, 0, 0.35);
}

cast-roster > details > summary,
.cast-roster > details > summary {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: #fff;
  margin-bottom: 10px;
}

cast-card,
.cast-card {
  display: grid;
  grid-template-columns: minmax(132px, 158px) 1fr;
  grid-template-rows: auto auto auto;
  gap: 0 14px;
  margin: 12px 0;
  padding: 12px;
  background: linear-gradient(145deg, rgba(28, 12, 12, 0.95), rgba(10, 8, 8, 0.98));
  border: 2px solid rgba(120, 40, 40, 0.55);
  position: relative;
  overflow: visible;
}

cast-card::before,
.cast-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(229, 57, 53, 0.1) 100%);
  pointer-events: none;
  z-index: 0;
}

cast-card[data-role="player"],
.cast-card[data-role="player"] {
  grid-template-rows: auto auto auto;
}

cast-card[data-role="mate"],
.cast-card[data-role="mate"] {
  grid-template-rows: auto auto;
}

cast-card[data-focus="true"],
.cast-card[data-focus="true"] {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 0 28px rgba(229, 57, 53, 0.25);
}

cast-card[data-focus="true"]::after,
.cast-card[data-focus="true"]::after {
  content: "本回合焦点";
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 3;
  font-size: 9px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--accent);
  padding: 2px 8px;
  border: 1px solid rgba(229, 57, 53, 0.5);
  background: rgba(0, 0, 0, 0.55);
}

cast-frame,
.cast-frame {
  grid-row: 1;
  grid-column: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  align-self: start;
  min-height: 200px;
  padding: 6px 4px 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(229, 57, 53, 0.35);
  overflow: visible;
}

cast-frame--expert,
.cast-frame--expert {
  justify-content: center;
  background: linear-gradient(180deg, rgba(20, 20, 28, 0.9), rgba(8, 8, 12, 0.95));
  border-color: rgba(126, 184, 255, 0.35);
}

cast-portrait,
.cast-portrait {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(340px, 52vh);
  min-height: 0;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: top center;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.65));
}

cast-ph,
.cast-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  min-height: 160px;
  font-size: 42px;
  font-weight: 700;
  color: rgba(229, 57, 53, 0.45);
  letter-spacing: 0.2em;
  background: radial-gradient(ellipse at bottom, rgba(229, 57, 53, 0.12), transparent 70%);
}

cast-frame--expert .cast-ph,
.cast-frame--expert .cast-ph {
  color: rgba(126, 184, 255, 0.5);
}

cast-file-id,
.cast-file-id {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: rgba(229, 57, 53, 0.85);
  padding: 2px 6px;
  border: 1px solid rgba(229, 57, 53, 0.4);
  background: rgba(0, 0, 0, 0.6);
}

cast-frame--expert .cast-file-id,
.cast-frame--expert .cast-file-id {
  color: rgba(126, 184, 255, 0.85);
  border-color: rgba(126, 184, 255, 0.4);
}

cast-side,
.cast-side {
  grid-column: 2;
  grid-row: 1;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

cast-head,
.cast-head {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(229, 57, 53, 0.2);
}

cast-kicker,
.cast-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(229, 57, 53, 0.75);
  margin-bottom: 4px;
}

cast-name,
.cast-name {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #fff;
  line-height: 1.25;
}

cast-codename,
.cast-codename {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

cast-tags,
.cast-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

cast-tag,
.cast-tag {
  font-size: 10px;
  padding: 3px 10px;
  border: 1px solid var(--rarity-rare);
  color: var(--rarity-rare);
  letter-spacing: 0.06em;
  box-shadow: 0 0 10px rgba(91, 141, 239, 0.15);
}

cast-brief,
.cast-brief {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-width: 0;
}

cast-brief-box,
.cast-brief-box {
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(229, 57, 53, 0.45);
  border-radius: 2px;
}

cast-brief item,
.cast-brief item,
cast-brief .item,
.cast-brief .item,
cast-brief-box item,
.cast-brief-box item {
  margin: 4px 0;
}

cast-brief item label,
.cast-brief item label,
.cast-brief-box item label {
  min-width: 3.2em;
  font-size: 11px;
  color: #888;
}

cast-detail,
.cast-detail {
  grid-column: 1 / -1;
  grid-row: 2;
  z-index: 1;
  margin-top: 8px;
  padding-top: 0;
  border-top: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

cast-detail--player,
.cast-detail--player,
cast-detail--mate,
.cast-detail--mate {
  grid-template-columns: 1fr 1fr;
}

cast-detail--mate details,
.cast-detail--mate details {
  margin: 0;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(229, 57, 53, 0.35);
  border-radius: 2px;
}

cast-panel,
.cast-panel {
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(229, 57, 53, 0.35);
  border-radius: 2px;
}

cast-panel-title,
.cast-panel-title {
  margin: 0 0 10px;
  padding-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #e8e0e0;
  border-bottom: 1px solid rgba(229, 57, 53, 0.25);
}

cast-panel-sub,
.cast-panel-sub {
  font-weight: 400;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

cast-panel-text,
.cast-panel-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: #ddd;
}

cast-panel item,
.cast-panel item {
  margin: 5px 0;
}

cast-panel--body,
.cast-panel--body {
  border-color: rgba(229, 57, 53, 0.4);
}

cast-panel--action,
.cast-panel--action {
  border-color: rgba(126, 184, 255, 0.35);
}

cast-panel--action .cast-panel-title,
.cast-panel--action .cast-panel-title {
  color: #b8d4ff;
}

cast-crimes,
.cast-crimes {
  grid-column: 1 / -1;
  grid-row: 3;
  z-index: 1;
  margin-top: 10px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(229, 57, 53, 0.5);
  border-radius: 2px;
}

cast-crimes .cast-panel-title,
.cast-crimes .cast-panel-title {
  color: #ff8a80;
  border-bottom-color: rgba(229, 57, 53, 0.45);
}

crime-list,
.crime-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

crime-entry,
.crime-entry {
  padding: 8px 10px;
  background: rgba(229, 57, 53, 0.06);
  border-left: 2px solid rgba(229, 57, 53, 0.6);
  font-size: 12px;
  line-height: 1.55;
  color: #ccc;
}

crime-day,
.crime-day {
  display: inline-block;
  margin-right: 8px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: #ff9a8b;
  letter-spacing: 0.08em;
}

crime-desc,
.crime-desc {
  color: #ddd;
}

bar-fill.stamina,
.bar-fill.stamina {
  background: linear-gradient(90deg, #1b5e20, #66bb6a);
}

bar-fill.energy,
.bar-fill.energy {
  background: linear-gradient(90deg, #0d47a1, #42a5f5);
}

/* —— 专家团队（cast-panel 红框，与角色档案一致） —— */
expert-roster,
.expert-roster {
  display: block;
  margin: 14px 0 8px;
}

expert-roster > details,
.expert-roster > details {
  padding: 10px 12px 14px;
  background: rgba(40, 12, 12, 0.4);
  border: 1px solid rgba(229, 57, 53, 0.35);
  box-shadow: inset 0 0 48px rgba(0, 0, 0, 0.35);
}

expert-roster > details > summary,
.expert-roster > details > summary {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: #fff;
  margin-bottom: 10px;
}

expert-squad,
.expert-squad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

cast-panel--expert,
.cast-panel--expert {
  margin: 0;
  background: linear-gradient(155deg, rgba(28, 10, 10, 0.98), rgba(10, 4, 4, 0.99));
}

cast-panel--expert item label,
.cast-panel--expert item label {
  min-width: 3.2em;
  color: #888;
  font-size: 11px;
}

cast-panel--expert item value,
.cast-panel--expert item value {
  color: #ddd;
}

cast-detail details,
.cast-detail details {
  margin: 0;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(229, 57, 53, 0.2);
}

cast-detail summary,
.cast-detail summary {
  font-size: 11px;
  color: #ccc;
}

@media (max-width: 560px) {
  cast-card,
  .cast-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  cast-frame,
  .cast-frame {
    grid-row: 1;
    grid-column: 1;
    min-height: 160px;
  }

  cast-portrait,
  .cast-portrait {
    max-height: min(280px, 45vh);
  }

  cast-side,
  .cast-side {
    grid-row: 2;
    grid-column: 1;
  }

  cast-detail,
  .cast-detail {
    grid-row: 3;
    grid-template-columns: 1fr;
  }

  cast-crimes,
  .cast-crimes {
    grid-row: 4;
  }

  expert-squad,
  .expert-squad {
    grid-template-columns: 1fr;
  }
}
