/* Page-specific styles for templates/voice_browser.html - built on the
   same CSS variables as style.css's :root, not a separate theme. */

.voice-browser-body {
  display: block;
  height: auto;
  overflow-y: auto;
}

.vb-back-link {
  color: var(--accent);
  text-decoration: none;
  margin-left: 0.5rem;
}

.vb-back-link:hover {
  text-decoration: underline;
}

.vb-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.vb-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
}

.vb-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.vb-filters label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-dim);
}

.vb-filters input,
.vb-filters select {
  width: 100%;
  padding: 0.55rem;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.vb-filters-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.vb-filters-actions button,
.vb-btn,
.vb-btn-secondary {
  display: inline-block;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.vb-btn-secondary {
  background: var(--answer-bubble);
  color: var(--text);
}

.vb-btn-secondary:disabled {
  opacity: 0.5;
  cursor: default;
}

.vb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.vb-pager {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.vb-table-wrap {
  overflow: auto;
  max-height: 72vh;
}

.vb-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88rem;
}

.vb-table th,
.vb-table td {
  text-align: left;
  padding: 0.6rem 0.55rem;
  border-bottom: 1px solid var(--panel-border);
  vertical-align: top;
}

.vb-table th {
  background: var(--panel);
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--text-dim);
}

.vb-sentence {
  min-width: 300px;
  max-width: 560px;
  line-height: 1.4;
}

.vb-path {
  font-size: 0.78rem;
  margin-top: 0.3rem;
}

.vb-meta {
  white-space: nowrap;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.vb-table audio {
  width: 240px;
  height: 36px;
}

.vb-muted {
  color: var(--text-dim);
}

.vb-footnote {
  font-size: 0.82rem;
}

@media (max-width: 700px) {
  .vb-main {
    padding: 0 1rem 1.5rem;
  }
  .vb-table audio {
    width: 190px;
  }
}
