/* ===================== */
/* 14. PANEL STRONG      */
/* ===================== */

/* Versículo con Strong */
.strong-verse {
  margin-bottom: 20px;
  line-height: 2.4;
  text-align: justify;
}

.strong-verse .verse-number {
  font-weight: bold;
  color: var(--accent);
  margin-right: 0;
  font-size: 0.60em;
  vertical-align: super;
  line-height: 0;
  cursor: pointer;
}

.strong-word-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0 1px;
  vertical-align: bottom;
  position: relative;
}

.strong-code {
  font-size: 0.55em;
  color: var(--accent);
  opacity: 0.7;
  cursor: pointer;
  font-weight: 600;
  line-height: 1;
  transition: all 0.2s ease;
  padding: 1px 3px;
  border-radius: 3px;
  user-select: none;
}

.strong-code.hebrew {
  font-family: 'SBL Hebrew', 'Ezra SIL', 'Frank Ruehl CLM', 'Times New Roman', serif;
  font-size: 0.76em;
  line-height: 1.35;
  direction: rtl;
  letter-spacing: 0.2px;
  padding: 1px 4px;
}

.strong-code.greek {
  font-family: 'SBL Greek', 'Cardo', 'Gentium Plus', 'Times New Roman', serif;
  font-size: 0.72em;
  line-height: 1.25;
  direction: ltr;
  padding: 1px 4px;
}

.strong-code:hover {
  opacity: 1;
  background: var(--accent);
  color: white;
  transform: scale(1.1);
}

.strong-code.active {
  opacity: 1;
  background: var(--accent);
  color: white;
}

.strong-word-wrap.strong-linked-hover,
.strong-word-text.strong-linked-hover,
.strong-code.strong-linked-hover {
  background: var(--accent-soft, rgba(217, 119, 6, 0.15));
  border-radius: 4px;
}

.strong-word-wrap.strong-linked-active,
.strong-word-text.strong-linked-active {
  background: var(--accent-soft, rgba(217, 119, 6, 0.28)) !important;
  border-radius: 4px;
}

.strong-word-wrap.strong-linked-active {
  box-shadow: 0 0 0 1.5px var(--accent), 0 0 8px rgba(0, 0, 0, 0.15);
}

.strong-word-wrap.strong-linked-active .strong-word-text {
  font-weight: 700;
  color: var(--text-main);
}

.strong-word-wrap.strong-linked-active .strong-code {
  background: var(--accent) !important;
  color: #ffffff !important;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

.verse-number-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 6px;
  vertical-align: baseline;
}

.btn-toggle-interlinear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  max-width: 22px;
  max-height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--interlinear-border, rgba(30, 58, 95, 0.3));
  background: var(--interlinear-bg, rgba(30, 58, 95, 0.08));
  color: var(--interlinear-accent, #1E3A5F);
  cursor: pointer;
  transition: all 0.18s ease;
  vertical-align: middle;
  margin-left: 6px;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-toggle-interlinear:hover,
.btn-toggle-interlinear.active {
  background: var(--interlinear-accent, #1E3A5F);
  color: #FFFFFF;
  border-color: var(--interlinear-accent, #1E3A5F);
  transform: translateY(-1px) scale(1.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-toggle-interlinear .interlinear-svg-icon {
  width: 12px;
  height: 12px;
  max-width: 12px;
  max-height: 12px;
  flex-shrink: 0;
  pointer-events: none;
}

.interlinear-accordion {
  margin: 8px 0 16px 0;
  padding: 12px 16px;
  background: var(--bg-card, rgba(0, 0, 0, 0.03));
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.interlinear-accordion.audio-active {
  box-shadow: 0 0 0 1.5px var(--accent), 0 3px 12px rgba(0, 0, 0, 0.08);
}

.interlinear-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light, rgba(150, 150, 150, 0.2));
  flex-wrap: nowrap;
}

.interlinear-source-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.interlinear-mtype-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
}

.interlinear-mtype-badge.mtype-nko {
  background: rgba(2, 132, 199, 0.15);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.3);
}

.interlinear-mtype-badge.mtype-k,
.interlinear-mtype-badge.mtype-var-k {
  background: rgba(180, 83, 9, 0.15);
  color: #b45309;
  border: 1px solid rgba(180, 83, 9, 0.3);
}

.interlinear-mtype-badge.mtype-n,
.interlinear-mtype-badge.mtype-var-n {
  background: rgba(67, 56, 202, 0.15);
  color: #4338ca;
  border: 1px solid rgba(67, 56, 202, 0.3);
}

.interlinear-mtype-badge.mtype-wlc {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.interlinear-source-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.interlinear-editions-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-hover, rgba(120, 120, 120, 0.08));
  border: 1px solid var(--border-light, rgba(150, 150, 150, 0.2));
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.2px;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.interlinear-actions-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Barra de reproducción scrubbeable del versículo */
.interlinear-audio-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 80px;
  max-width: 220px;
  margin: 0 4px;
}

.interlinear-progress-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--border-light, rgba(150, 150, 150, 0.3));
  outline: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.interlinear-progress-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: transform 0.1s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.interlinear-progress-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.interlinear-audio-time {
  font-size: 0.7rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--text-muted);
  white-space: nowrap;
  user-select: none;
}

/* Botón Gramática en acordeón */
.btn-interlinear-grammar-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--bg-hover, rgba(120, 120, 120, 0.08));
  color: var(--text-color, #333);
  border: 1px solid var(--border-light, rgba(150, 150, 150, 0.3));
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-interlinear-grammar-info:hover {
  background: var(--accent-soft, rgba(217, 119, 6, 0.15));
  color: var(--accent);
  border-color: var(--accent);
}

/* Botón Reproducir Versículo en acordeón */
.btn-play-verse-audio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--accent-soft, rgba(217, 119, 6, 0.15));
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-play-verse-audio:hover {
  background: var(--accent);
  color: #ffffff;
  transform: scale(1.03);
}

.btn-play-verse-audio.playing {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.btn-play-verse-audio.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ── MODO SMARTPHONE / DISPOSITIVOS COMPACTOS (< 600px) ── */
@media (max-width: 600px) {
  .interlinear-actions-bar {
    gap: 4px;
  }

  /* En móviles ocultamos " · Hebreo Masorético", mostrando solo "WLC" o "TAGNT" */
  .interlinear-source-tag .source-lang-label {
    display: none !important;
  }
  .interlinear-source-tag {
    font-size: 0.68rem;
    padding: 2px 4px;
    background: var(--bg-hover, rgba(120, 120, 120, 0.08));
    border-radius: 4px;
  }

  .interlinear-source-group {
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .interlinear-mtype-badge {
    font-size: 0.62rem;
    padding: 1px 4px;
    flex-shrink: 0;
  }

  .interlinear-editions-tag {
    font-size: 0.65rem;
    padding: 1px 5px;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
  }

  .interlinear-editions-tag .editions-wlc-ver {
    display: none !important;
  }

  /* Botón de gramática se convierte en icono circular compacto 26px */
  .btn-interlinear-grammar-info {
    width: 26px;
    height: 26px;
    min-width: 26px;
    padding: 0;
    border-radius: 50%;
  }
  .btn-interlinear-grammar-info .btn-grammar-label {
    display: none !important;
  }
  .btn-interlinear-grammar-info svg {
    margin: 0 !important;
  }

  /* Botón de audio se convierte en icono circular compacto 26px */
  .btn-play-verse-audio {
    width: 26px;
    height: 26px;
    min-width: 26px;
    padding: 0;
    border-radius: 50%;
    gap: 0;
  }
  .btn-play-verse-audio .btn-audio-label {
    display: none !important;
  }

  /* Barra de audio adaptable */
  .interlinear-audio-bar {
    max-width: 160px;
    min-width: 70px;
    gap: 4px;
    margin: 0 2px;
  }
  .interlinear-audio-time {
    font-size: 0.64rem;
  }
}

.interlinear-grammar-card {
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--card-bg, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-light, rgba(150, 150, 150, 0.2));
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.2s ease;
}

.grammar-card-word {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.grammar-card-lemma {
  color: var(--accent);
  font-weight: 600;
}

.grammar-card-strong {
  background: rgba(217, 119, 6, 0.15);
  color: var(--accent);
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.grammar-card-strong:hover {
  background: var(--accent);
  color: #ffffff;
}

.grammar-card-editions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.grammar-card-editions .editions-label {
  opacity: 0.75;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
}

.grammar-card-summary {
  color: var(--text-color);
  background: rgba(120, 120, 120, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-light, rgba(150, 150, 150, 0.15));
  font-weight: 500;
}

.grammar-card-btn-help {
  margin-left: auto;
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}
.grammar-card-btn-help:hover {
  color: var(--accent);
  border-color: var(--border-light, rgba(150, 150, 150, 0.2));
  background: rgba(120, 120, 120, 0.08);
}

/* Modal Leyenda Gramatical */
.grammar-legend-modal .grammar-tab-btn {
  background: none;
  border: none;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.grammar-legend-modal .grammar-tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.legend-sec-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 6px;
}
.legend-card {
  padding: 6px 10px;
  background: rgba(120, 120, 120, 0.04);
  border: 1px solid var(--border-light, rgba(150, 150, 150, 0.15));
  border-radius: 6px;
  font-size: 0.8rem;
  line-height: 1.4;
}
.legend-source-item {
  padding: 10px 12px;
  background: rgba(120, 120, 120, 0.04);
  border: 1px solid var(--border-light, rgba(150, 150, 150, 0.15));
  border-radius: 6px;
}
.legend-source-item .source-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.legend-source-item .source-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent);
}
.legend-source-item .source-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.interlinear-verse-flow {
  display: block;
  width: 100%;
  line-height: 2.3;
}

.interlinear-verse-flow[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

.interlinear-verse-flow[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

.interlinear-word {
  display: inline-block;
  padding: 2px 5px;
  margin: 1px 2px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.interlinear-word.hebrew {
  font-family: 'SBL Hebrew', 'Ezra SIL', 'Frank Ruehl CLM', 'Times New Roman', serif;
  font-size: 1.45rem;
  line-height: 1.8;
  direction: rtl;
  color: var(--accent) !important;
  letter-spacing: 0.3px;
}

.interlinear-word.greek {
  font-family: 'SBL Greek', 'Cardo', 'Gentium Plus', 'Times New Roman', serif;
  font-size: 1.25rem;
  line-height: 1.6;
  direction: ltr;
  color: var(--accent) !important;
}

.interlinear-word.is-supplied {
  color: var(--text-main) !important;
  font-family: inherit;
  font-size: 1.05rem;
  font-style: italic;
  opacity: 0.9;
  letter-spacing: normal;
}

.interlinear-word:hover,
.interlinear-word.strong-linked-hover {
  background: var(--accent-soft, rgba(217, 119, 6, 0.2));
  border-radius: 4px;
}

.interlinear-word.strong-linked-active {
  background: var(--accent) !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  font-weight: bold;
}

/* ── RESALTADO DINÁMICO EN TIEMPO REAL DE LA PALABRA PRONUNCIADA ── */
.interlinear-word.audio-word-active,
.pure-original-word.audio-word-active,
.strong-word-wrap.audio-word-active {
  background: var(--accent) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 0 14px var(--accent-soft, rgba(217, 119, 6, 0.6)), 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  border-radius: 4px !important;
  font-weight: bold !important;
  transform: scale(1.08) !important;
  transition: background 0.08s ease, color 0.08s ease, transform 0.08s ease !important;
  z-index: 5 !important;
  position: relative !important;
  display: inline-block !important;
}

.interlinear-word.audio-word-active.hebrew,
.interlinear-word.audio-word-active.greek,
.pure-original-word.audio-word-active,
.pure-original-word.audio-word-active.hebrew,
.pure-original-word.audio-word-active.greek {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.strong-word-wrap.audio-word-active .strong-word-text,
.strong-word-wrap.audio-word-active .strong-code {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* ── VISTA DE TEXTO ORIGINAL PURO EN STRONG (Modo Pergamino) ── */
.pure-original-container {
  padding: 12px 16px;
}

.pure-original-verse {
  margin-bottom: 16px;
  line-height: 2.4;
}

.pure-original-verse.hebrew {
  font-family: 'SBL Hebrew', 'Ezra SIL', 'Frank Ruehl CLM', 'Times New Roman', serif;
  font-size: 1.55rem;
  direction: rtl;
  text-align: right;
  color: var(--text-main);
}

.pure-original-verse.greek {
  font-family: 'SBL Greek', 'Cardo', 'Gentium Plus', 'Times New Roman', serif;
  font-size: 1.35rem;
  direction: ltr;
  text-align: left;
  color: var(--text-main);
}

.pure-original-verse-num {
  font-family: sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-right: 6px;
  margin-left: 6px;
  user-select: none;
}

.pure-original-word {
  display: inline-block;
  padding: 1px 4px;
  margin: 0 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.1s ease;
}

.pure-original-word:hover {
  background: var(--accent-soft, rgba(217, 119, 6, 0.18));
}

.interlinear-loading,
.interlinear-empty,
.interlinear-error {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 4px 0;
}

.strong-word-text {
  line-height: 1.4;
}

.strong-plain-word {
  margin: 0 1px;
}

/* =====================================================
   MODAL STUDIO FLOTANTE - STRONG
   ===================================================== */

.strong-bottom-panel,
#strongBottomPanel {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  background: rgba(15, 23, 42, 0) !important;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 2500 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.65s cubic-bezier(0.2, 0.8, 0.25, 1),
              visibility 0.65s cubic-bezier(0.2, 0.8, 0.25, 1),
              background 0.65s cubic-bezier(0.2, 0.8, 0.25, 1),
              backdrop-filter 0.65s cubic-bezier(0.2, 0.8, 0.25, 1),
              -webkit-backdrop-filter 0.65s cubic-bezier(0.2, 0.8, 0.25, 1) !important;
  transform: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  font-size: var(--font-reading, 1.18rem);
}

.strong-bottom-panel::before,
#strongBottomPanel::before {
  display: none !important;
}

#strongBottomMinimize {
  display: none !important;
}

.strong-bottom-panel.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  background: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  max-height: none !important;
  padding: 24px !important;
}

.strong-modal-card {
  width: 100%;
  max-width: 860px;
  height: 86vh;
  max-height: 880px;
  background: var(--bg-container, #ffffff);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95) translateY(16px);
  filter: blur(12px);
  transition: opacity 0.68s cubic-bezier(0.2, 0.8, 0.25, 1),
              transform 0.68s cubic-bezier(0.2, 0.8, 0.25, 1),
              filter 0.68s cubic-bezier(0.2, 0.8, 0.25, 1);
  will-change: opacity, transform, filter;
}

.strong-bottom-panel.open .strong-modal-card {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0px);
}

@media (max-width: 680px) {
  .strong-bottom-panel {
    padding: 0 !important;
  }
  .strong-bottom-panel.open {
    padding: 0 !important;
  }
  .strong-modal-card {
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    transform: translateY(20px);
    opacity: 0;
    filter: blur(8px);
  }
  .strong-bottom-panel.open .strong-modal-card {
    transform: translateY(0) !important;
    opacity: 1 !important;
    filter: blur(0px) !important;
  }
}

/* En modo escritorio dentro de ventana flotante, contener */
@media (min-width: 1180px) {
  .desktop-window .strong-bottom-panel {
    position: static !important;
    transform: none !important;
    max-height: none !important;
    height: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: flex;
    flex-direction: column;
  }
  .desktop-window .strong-modal-card {
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

.strong-bottom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-container);
  border-radius: 20px 20px 0 0;
  flex-shrink: 0;
}

.strong-bottom-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.strong-code-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.88em;
}

.strong-ref-count {
  font-size: 0.78em;
  color: var(--text-muted);
  font-weight: 600;
}

/* ===================== */
/* CONTROLES STRONG      */
/* ===================== */
.strong-bottom-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.strong-control-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  opacity: 0.45;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, color 0.2s ease;
  border-radius: 4px;
  line-height: 1;
}

.strong-control-btn:hover {
  opacity: 0.85;
  color: var(--accent);
}

.strong-control-btn:active {
  opacity: 1;
}

/* Estado maximizado: la tarjeta modal ocupa toda la pantalla */
.strong-bottom-panel.maximized,
#strongBottomPanel.maximized {
  padding: 0 !important;
}

.strong-bottom-panel.maximized .strong-modal-card,
#strongBottomPanel.maximized .strong-modal-card {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  border-radius: 0 !important;
  border: none !important;
}

.strong-bottom-panel.maximized .strong-bottom-header,
#strongBottomPanel.maximized .strong-bottom-header {
  border-radius: 0 !important;
}

.strong-bottom-panel.maximized .strong-bottom-content,
#strongBottomPanel.maximized .strong-bottom-content {
  max-height: none !important;
  flex: 1 !important;
  padding-bottom: env(safe-area-inset-bottom, 16px) !important;
  overflow-y: auto !important;
}

.strong-bottom-content {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 16px 20px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.strong-tab-panel {
  flex: 1 !important;
  overflow-y: auto !important;
  min-height: 0 !important;
  padding-right: 6px;
  -webkit-overflow-scrolling: touch;
}

/* Lista de referencias */
.strong-ref-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.strong-ref-item {
  display: inline-block;
  padding: 5px 12px;
  background: var(--bg-filters);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.78em;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.strong-ref-item:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.strong-ref-item .ref-testament {
  font-size: 0.70em;
  margin-right: 2px;
}

/* Paginación panel Strong */
.strong-ref-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 12px 0 4px;
  margin-top: 10px;
  border-top: 1px solid var(--border);
}

.strong-ref-pagination .pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: 999px;
}

.strong-ref-pagination .pagination-info {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
}

.strong-bottom-loading {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-style: italic;
}

/* Referencias detalladas */
.strong-ref-list-detailed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 0;
}

.strong-bottom-content .search-result-card {
  margin-bottom: 0;
  background: var(--bg-filters);
  border-left-width: 3px;
}

.strong-bottom-content .search-result-text {
  font-size: 0.85em;
  line-height: 1.5;
  margin-top: 4px;
  color: var(--text-main);
}

.strong-bottom-content .search-pagination {
  padding: 15px 0;
  gap: 10px;
}

.strong-bottom-content .pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 0.8rem;
  border-radius: 999px;
}

/* ===================== */
/* TABS DEL DICCIONARIO  */
/* ===================== */
.strong-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.strong-tab {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-size: 0.78em;
  font-weight: 600;
  color: var(--text-muted);
  font-family: inherit;
  transition: color 0.2s, border-color 0.2s;
}

.strong-tab:hover {
  color: var(--accent);
}

.strong-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ===================== */
/* ENTRADA DICCIONARIO   */
/* ===================== */
.strong-dict-entry {
  padding: 0 0.25rem 1rem;
  font-size: 0.88em;
  line-height: 1.6;
}

.strong-dict-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.strong-dict-lemma {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.strong-dict-translit {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.88em;
}

.strong-dict-pronun-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  vertical-align: middle;
}

.strong-dict-pronun {
  color: var(--text-muted);
  font-size: 0.82em;
  opacity: 0.85;
  font-family: inherit;
}

.strong-audio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent, #C9A84C) 35%, transparent);
  background: color-mix(in srgb, var(--accent, #C9A84C) 12%, transparent);
  color: var(--accent, #C9A84C);
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.strong-audio-btn:hover {
  background: var(--accent, #C9A84C);
  color: #ffffff;
  border-color: var(--accent, #C9A84C);
  transform: translateY(-1px) scale(1.06);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--accent, #C9A84C) 35%, transparent);
}

.strong-audio-btn:active {
  transform: scale(0.94);
}

.strong-audio-btn svg {
  display: block;
  pointer-events: none;
}

.strong-audio-btn.playing {
  background: var(--accent, #C9A84C);
  color: #ffffff;
  border-color: var(--accent, #C9A84C);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent, #C9A84C) 55%, transparent);
  animation: strongAudioPulse 1.2s infinite ease-in-out;
}

@keyframes strongAudioPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.88; }
  100% { transform: scale(1); opacity: 1; }
}

/* Badges diccionario */
.strong-dict-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.strong-dict-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65em;
  font-weight: 700;
}

.strong-dict-badge.lang {
  background: #dbeafe;
  color: #1d4ed8;
}

.strong-dict-badge.morph {
  background: #fef3c7;
  color: #92400e;
}

.strong-dict-badge.speech {
  background: #f3f4f6;
  color: #374151;
}

[data-theme="dark"] .strong-dict-badge.lang {
  background: #1e3a5f;
  color: #93c5fd;
}

[data-theme="dark"] .strong-dict-badge.morph {
  background: #451a03;
  color: #fcd34d;
}

[data-theme="dark"] .strong-dict-badge.speech {
  background: #374151;
  color: #d1d5db;
}

/* Secciones contenido */
.strong-dict-section {
  margin-bottom: 0.65rem;
}

.strong-dict-section.kjv {
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
  padding: 0.5rem 0.75rem;
  border-radius: 0 0.375rem 0.375rem 0;
}

.strong-dict-section.exegesis {
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  padding: 0.5rem 0.75rem;
  border-radius: 0 0.375rem 0.375rem 0;
}

[data-theme="dark"] .strong-dict-section.kjv {
  background: #1e3a5f;
  border-left-color: #3b82f6;
}

[data-theme="dark"] .strong-dict-section.exegesis {
  background: #451a03;
  border-left-color: #f59e0b;
}

.strong-dict-label {
  display: block;
  font-size: 0.62em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.strong-dict-section p {
  margin: 0;
  color: var(--text-main);
}

/* Relaciones */
.strong-dict-relations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.strong-dict-rel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--bg-filters);
  cursor: pointer;
  font-size: 0.72em;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.strong-dict-rel-btn:hover {
  border-color: var(--accent);
  background: var(--card-hover);
}

.rel-code {
  font-weight: 700;
  color: var(--accent);
}

.rel-translit {
  font-style: italic;
  color: var(--text-muted);
}

.rel-type {
  color: var(--text-muted);
  font-size: 0.65em;
}

.strong-dict-empty {
  padding: 1.5rem 1rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

/* ===================== */
/* 9. RESPONSIVE         */
/* ===================== */
@media (max-width: 600px) {

  html,
  body {
    height: 100%;
    margin: 0;
    padding: 0;
  }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  .container {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  header,
  .mode-tabs,
  #panelLectura,
  #panelComparacion,
  #panelConcordancia,
  #panelStrong,
  .reference {
    flex-shrink: 0;
  }

  .content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 14px;
    line-height: var(--line-height-content, 1.7);
  }

  /* Tabs compactos */
  .mode-tabs {
    padding: 0 8px;
    gap: 3px;
  }

  .mode-tab {
    padding: 10px 4px;
    font-size: 0.85em;
  }

  .tab-text {
    display: none;
  }

  .tab-icon {
    font-size: 1.4rem;
  }

  /* Mostrar toggle filtros */
  .filters-toggle {
    display: flex;
  }

  /* Filtros 2 columnas compactas en móvil */
  .filters {
    grid-template-columns: repeat(2, 1fr);
    padding: 8px 10px;
    gap: 6px 8px;
    border-radius: 12px;
  }

  .concordancia-filters {
    grid-template-columns: 1fr 1fr;
  }

  .search-input-group {
    grid-column: 1 / -1;
  }

  select,
  input[type="text"],
  textarea {
    height: 34px;
    padding: 4px 8px;
    font-size: 0.82rem !important;
    border-radius: 8px;
  }

  .filter-group label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
  }

  .reference {
    padding: 0 14px;
  }

  /* Búsqueda */
  .search-wrapper {
    /* flex-direction: column removed */
  }

  .search-stats {
    flex-direction: column;
    text-align: center;
  }

  .search-pagination {
    flex-direction: column;
  }

  .search-result-ref,
  .search-nav-link {
    font-size: 0.88em;
  }

  /* Comparación */
  .comp-row {
    grid-template-columns: 1fr;
  }

  .comp-header {
    grid-template-columns: 1fr 1fr;
  }

  .comp-cells-wrapper {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Pista orientación */
  .filters-toggle-left {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
  }

  .filters-toggle-ref {
    max-width: 150px;
    flex-shrink: 1;
  }

  .orientation-hint {
    display: flex;
  }

  /* Modal y FAB */
  .modal-content {
    width: 95%;
    padding: 15px;
    border-radius: 10px;
  }

  .floating-action-button {
    bottom: 15px;
    right: 15px;
    padding: 10px 18px;
    font-size: 0.9em;
  }


  .strong-verse {
    line-height: 2.2;
    margin-bottom: 16px;
  }

  /* Panel ajustes */
  .settings-panel {
    top: 80px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .settings-item {
    justify-content: space-between;
  }
}

/* ── Extra: pantallas muy pequeñas ── */
@media (max-width: 380px) {
  .content {
    padding: 10px;
  }

  .strong-verse {
    line-height: 2.1;
  }

  .filters {
    grid-template-columns: 1fr;
    padding: 10px;
  }

}