/* ============================================================
   VOICE LINES PAGE (Hunter Dialogue)
   ============================================================ */
#voices { padding: 0 !important; max-width: none !important; margin: 0 !important; width: 100vw !important; height: calc(100vh - 60px) !important; overflow: hidden !important; position: fixed !important; top: 60px !important; left: 0 !important; right: 0 !important; }
#voices.active { display: flex !important; flex-direction: column !important; }

.vl-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: 100%;
  min-height: 0;
}

.vl-sidebar { display: none; }

/* Source tabs toolbar */
.vl-source-tabs { display: none; }
.vl-source-tabs::-webkit-scrollbar { display: none; }

.vl-source-tab {
  padding: 0.65rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.vl-source-tab:hover { color: var(--color-text); }
.vl-source-tab.active { color: var(--color-text); border-bottom-color: var(--vl-tab-color, var(--color-accent)); }

.vl-sidebar-heading {
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 0.6rem 0.9rem 0.3rem;
  border-top: 1px solid var(--color-border);
  margin-top: 0.35rem;
}
.vl-sidebar-heading:first-child { border-top: none; margin-top: 0; }

.vl-char-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.35rem 0.9rem;
  background: none;
  border: none;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
  transition: color 0.12s, background 0.12s;
}
.vl-char-btn:hover { color: var(--color-text); background: rgba(255,255,255,0.03); }
.vl-char-btn.active { color: var(--vl-cls-color, var(--color-accent)); background: rgba(255,255,255,0.05); }
.vl-char-btn img { width:24px;height:24px;border-radius:3px;object-fit:cover;border:1px solid #1a1a1a;flex-shrink:0; }

.vl-main {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  background: #000;
  flex: 1;
  width: 100%;
  min-width: 0;
}

/* Theatre exit button */
.vl-theatre-exit {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 10;
  background: rgba(0,0,0,0.7);
  border: 1px solid #333;
  border-radius: 4px;
  color: #aaa;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
}
.vl-theatre-exit:hover {
  background: rgba(0,0,0,0.9);
  border-color: #666;
  color: #fff;
}

/* Theatre title bar */
.vl-theatre-title {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3rem;
  height: 40px;
  background: rgba(0,0,0,0.95);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  flex-shrink: 0;
}

.vl-theatre-title-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── THEATRE PLAYER ── */
.vl-theatre {
  flex-shrink: 0;
  position: relative;
  background: #000;
  border-bottom: 1px solid var(--color-border);
  display: none;
  width: 100%;
}

.vl-theatre.active {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.vl-stage {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex: 1;
  min-height: 0;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  padding: 10px;
  background: #000;
  box-sizing: border-box;
}

.vl-actor {
  width: 600px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  border: 1px solid #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vl-actor img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
  margin: auto;
  display: block;
  transition: filter 0.3s ease;
  filter: brightness(0.2) saturate(0.15);
}

.vl-actor.speaking img {
  filter: brightness(1) saturate(1);
}

.vl-actor-name { display: none; }

.vl-actor-glow {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
  pointer-events: none;
}

.vl-actor.speaking .vl-actor-glow {
  border-color: var(--vl-actor-color, #ab2d16);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.3), 0 0 20px var(--vl-actor-color, #ab2d16);
}

/* ── SUBTITLES ── */
.vl-subtitles { position: relative; background: rgba(0,0,0,0.95); border-top: 1px solid var(--color-border); padding: 1.4rem 2rem; min-height: 84px; display: flex; align-items: center; justify-content: center; text-align: center; }

.vl-subtitle-char { font-size: 1.5rem; font-weight: 700; flex-shrink: 0; margin-right: 0.4rem; }

.vl-sub-name { font-weight: 700; }
    .vl-subtitle-text { font-size: 1.5rem; color: #f2f2f2; font-weight: 400; line-height: 1.5; max-width: 820px; text-align: center; }

/* ── PLAYER CONTROLS ── */
.vl-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(0,0,0,0.9);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

.vl-progress-bar {
  flex: 1;
  height: 3px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.vl-progress-fill {
  height: 100%;
  background: var(--vl-speaker-color, var(--color-accent));
  width: 0%;
  border-radius: 2px;
  transition: width 0.1s linear, background 0.3s ease;
}

.vl-ctrl-btn {
  width: 28px; height: 28px;
  background: #0a0a0a;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.vl-ctrl-btn:hover { color: var(--color-text); border-color: #444; }
.vl-ctrl-btn.active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

.vl-volume-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.vl-vol-icon {
  font-size: 0.75rem;
  cursor: pointer;
  user-select: none;
  opacity: 0.7;
}
.vl-vol-icon:hover { opacity: 1; }
.vl-volume {
  -webkit-appearance: none;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--vl-speaker-color, var(--color-accent)) 0%, var(--vl-speaker-color, var(--color-accent)) var(--vol-pct, 100%), var(--color-border) var(--vol-pct, 100%));
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  transition: background 0.3s;
}
.vl-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-text);
  cursor: pointer;
}
.vl-volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-text);
  cursor: pointer;
  border: none;
}

.vl-ctrl-time {
  font-size: 0.62rem;
  color: var(--color-muted);
  min-width: 70px;
  text-align: right;
  flex-shrink: 0;
}

/* ── SEARCH ── */
.vl-search-bar { display: none; }
.vl-search {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.4rem 0.9rem;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.15s;
}
.vl-search:focus { border-color: #333; }
.vl-search::placeholder { color: var(--color-muted); }

/* ── CONVERSATION LIST ── */
.vl-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

/* ── CONVERSATION ROWS (Netflix style) ── */
.vl-conv-list { display: flex; flex-direction: column; gap: 0; padding: 0; }

.vl-row-section { padding: 1.5rem 1.5rem 0.5rem; }

.vl-row-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
  padding-left: 2px;
  border-left: 2px solid var(--color-accent);
  padding-left: 0.5rem;
}

.vl-row-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: #222 transparent;
}
.vl-row-scroll::-webkit-scrollbar { height: 8px; }
.vl-row-scroll::-webkit-scrollbar-track { background: #111; border-radius: 4px; margin: 0 4px; }
.vl-row-scroll::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; border: 1px solid #222; }
.vl-row-scroll::-webkit-scrollbar-thumb:hover { background: #888; }
.vl-row-scroll { scrollbar-width: thick; scrollbar-color: #555 #111; padding-bottom: 12px; }

.vl-conv-card {
  width: 220px;
  flex-shrink: 0;
  background: #060606;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  opacity: 0;
  transform: translateY(10px);
}
.vl-conv-card.card-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.2s, box-shadow 0.2s;
}
.vl-conv-card:hover {
  border-color: #333;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  z-index: 2;
}
.vl-conv-card.active-conv { border-color: #444; }
.vl-conv-card.last-played { border-color: #333; }
.vl-conv-card.last-played::after {
  content: '▶ LAST PLAYED';
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.42rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  opacity: 0.7;
}

/* Large faded number behind title */
.vl-card-num {
  position: absolute;
  top: -8px;
  right: 6px;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
  font-family: var(--font-heading);
  letter-spacing: -0.05em;
  user-select: none;
}

/* Faint portrait background */
.vl-card-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.055;
  background-size: cover;
  background-position: center top;
  filter: grayscale(1) blur(2px);
  transform: scale(1.05);
}

.vl-conv-card {
  background: #000;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}
.vl-conv-card:hover { border-color: #2a2a2a; }
.vl-conv-card.active-conv { border-color: var(--color-accent); }
.vl-conv-card.last-played::after {
  content: '▶ LAST PLAYED';
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  opacity: 0.6;
}

.vl-conv-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.9rem 1rem 0.75rem;
  background: rgba(0,0,0,0.3);
}

.vl-conv-header-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Editable conversation title */
.vl-conv-title {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.3;
  cursor: text;
  border-radius: 3px;
  padding: 1px 4px;
  margin: -1px -4px;
  outline: none;
  transition: background 0.15s;
}
.vl-conv-title:hover { background: rgba(255,255,255,0.05); }
.vl-conv-title:focus { background: rgba(255,255,255,0.08); outline: 1px solid #444; }

.vl-conv-tags { display: flex; flex-wrap: wrap; gap: 0.2rem; }
.vl-conv-tag {
  font-size: 0.56rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  background: rgba(255,255,255,0.05);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.vl-play-conv-btn {
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}
.vl-play-conv-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* Conversation thumbnail strip */
.vl-conv-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 0 0.9rem 0.75rem;
}

/* Thumbnails are 360x200 landscape — use correct ratio */
.vl-conv-thumb {
  width: 100%;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
  object-position: center center;
  background: #050505;
  border: 2px solid #1a1a1a;
  display: block;
  transition: border-color 0.15s;
}
.vl-conv-thumb:hover { border-color: #444; }

.vl-conv-lines {
  display: none;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.4rem 0.9rem 0.6rem;
  border-top: 1px solid var(--color-border);
}
.vl-conv-card.open .vl-conv-lines { display: flex; }

.vl-conv-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.4rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.1s;
}
.vl-conv-line:hover { background: rgba(255,255,255,0.03); }
.vl-conv-line.playing { background: rgba(139,26,22,0.08); }

.vl-conv-char {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  min-width: 70px;
  flex-shrink: 0;
}

.vl-conv-file {
  flex: 1;
  font-size: 0.65rem;
  color: var(--color-muted);
  font-family: 'Courier New', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vl-play-btn {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #0a0a0a;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.12s;
}
.vl-conv-line:hover .vl-play-btn,
.vl-conv-line.playing .vl-play-btn {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

#vl-now-playing.visible { transform: translateY(0); }

.vl-np-char {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-width: 55px;
  flex-shrink: 0;
}

.vl-np-file {
  font-size: 0.7rem;
  color: var(--color-muted);
  font-family: 'Courier New', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  max-width: 320px;
}

.vl-np-progress {
  flex: 1;
  max-width: 280px;
  height: 3px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.vl-np-fill {
  height: 100%;
  background: var(--color-accent);
  width: 0%;
  border-radius: 2px;
}

.vl-np-time {
  font-size: 0.62rem;
  color: var(--color-muted);
  min-width: 70px;
  text-align: right;
  flex-shrink: 0;
}

.vl-np-controls { display: flex; gap: 0.4rem; align-items: center; flex-shrink: 0; }

.vl-np-btn {
  width: 30px; height: 30px;
  background: #0a0a0a;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.15s;
}

.vl-np-btn:hover { color: var(--color-text); border-color: #444; }
.vl-np-btn.active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }




.item-notes details>summary{list-style:none;}
.item-notes details>summary::-webkit-details-marker{display:none;}
.item-notes details>summary::before{content:"+";display:inline-block;width:1.1em;font-weight:700;color:var(--cls-color, var(--color-accent));}
.item-notes details[open]>summary::before{content:"\2212";}
