:root {
  --ink: #1b2430;
  --muted: #5d6877;
  --line: #cbd5df;
  --soft: #eef3f7;
  --paper: #fbfbf9;
  --voice: #9d6318;
  --voice-dark: #241d18;
  --voice-ink: #5d370d;
  --voice-line: #d7b06d;
  --voice-soft: #f7eddc;
  --white: #ffffff;
  --shadow: 0 16px 34px rgba(27, 36, 48, .10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8f8f7 0, #edf2f4 430px, #fbfbf8 100%);
}

.wrap {
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  background: linear-gradient(115deg, var(--voice-dark), var(--voice));
  color: var(--white);
}

.topbar-inner {
  min-height: 154px;
  display: flex;
  align-items: center;
  padding: 24px 0 25px;
}

.topbar-inner-split {
  justify-content: space-between;
  gap: 24px;
}

.panel-title {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 11px;
}

h1 {
  margin: 0 0 12px;
  max-width: 960px;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: 0;
}

.topbar p {
  margin: 0;
  max-width: 880px;
  line-height: 1.42;
}

.topbar .tagline {
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
}

.status-line {
  margin-top: 18px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.74);
}

.topbar-nav {
  flex: 0 0 auto;
  align-self: flex-start;
  display: flex;
  gap: 8px;
  padding-top: 4px;
}

.topbar-nav a,
.language-tabs span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255,255,255,.48);
  color: var(--white);
  background: rgba(255,255,255,.08);
  padding: 0 13px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.topbar-nav a:hover {
  background: rgba(255,255,255,.16);
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 800;
}

.language-tabs {
  display: flex;
  margin-top: 20px;
}

.language-tabs span[aria-current="true"] {
  color: var(--voice-ink);
  background: var(--white);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 14px;
}

.feature-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,.86);
  padding: 16px 14px 18px;
  min-height: 148px;
  box-shadow: var(--shadow);
}

.feature-card h2 {
  margin: 0 0 12px;
  color: var(--voice-dark);
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: 0;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 42px;
  min-width: 0;
}

.search-panel,
.results-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,.93);
  box-shadow: var(--shadow);
  min-width: 0;
}

.search-panel {
  padding: 18px;
  position: sticky;
  top: 12px;
}

.results-panel { padding: 18px; }

label {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  height: 38px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  padding: 0 11px;
  font: inherit;
  font-size: 14px;
}

input::placeholder {
  color: #7a8490;
  opacity: .78;
  font-size: 13px;
  font-weight: 400;
}

input:focus,
select:focus,
button:focus {
  outline: 3px solid rgba(157, 99, 24, .30);
  border-color: var(--voice);
}

.actions,
.results-head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.actions { margin-top: 16px; }

button {
  min-height: 38px;
  border: 1px solid var(--voice);
  border-radius: 4px;
  background: var(--voice);
  color: var(--white);
  font-weight: 800;
  padding: 0 14px;
  cursor: pointer;
}

button:hover { filter: brightness(1.06); }

button.ghost {
  background: var(--white);
  color: var(--voice-ink);
}

.actions button { flex: 1; }

.results-head {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.results-head p {
  margin: 7px 0 0;
  color: var(--muted);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.chip {
  border: 1px solid var(--voice-line);
  border-radius: 4px;
  color: var(--voice-ink);
  background: var(--voice-soft);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
}

.results {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.record {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 16px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.record,
.record * { overflow-wrap: anywhere; }

.thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
  object-fit: cover;
}

.thumb-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.thumb-link:focus {
  outline: 3px solid rgba(157, 99, 24, .30);
  outline-offset: 3px;
}

.record-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.badge {
  color: var(--voice-ink);
  background: var(--voice-soft);
  border: 1px solid var(--voice-line);
  padding: 3px 7px;
}

.record h2 {
  margin: 0 0 5px;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0;
}

.talk-title {
  margin: 0 0 13px;
  color: #2f3947;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.32;
}

.section-title {
  margin: 14px 0 6px;
  color: #7b4a12;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 10px;
  font-weight: 600;
}

.record p {
  margin: 0;
  line-height: 1.55;
}

.search-hit {
  border-radius: 3px;
  background: #fff19a;
  color: inherit;
  padding: 1px 3px;
}

.reference-text {
  color: var(--muted);
  font-size: 13px;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.record-actions a {
  border: 1px solid var(--voice);
  border-radius: 4px;
  color: var(--voice-ink);
  background: var(--white);
  padding: 8px 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

mark {
  background: #ffe59b;
  padding: 0 2px;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,.72);
  padding: 18px;
  color: var(--muted);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pagination button {
  min-width: 38px;
  background: var(--white);
  color: var(--voice-ink);
}

.pagination button[aria-current="page"] {
  background: var(--voice);
  color: var(--white);
}

.about-page {
  background: linear-gradient(180deg, #f8f8f7 0, #edf2f4 360px, #fbfbf8 100%);
}

.about-topbar .topbar-inner {
  min-height: 154px;
}

.about-content {
  max-width: 820px;
  padding: 18px 0 42px;
}

.about-section {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 14px;
}

.about-section h2 {
  margin: 0 0 15px;
  color: var(--voice-dark);
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
}

.about-section p {
  max-width: 940px;
  margin: 0 0 14px;
  line-height: 1.65;
}

.about-section p:last-child {
  margin-bottom: 0;
}

@media (max-width: 920px) {
  .feature-cards,
  .workspace {
    grid-template-columns: 1fr;
  }

  .search-panel {
    position: static;
  }

  .topbar-inner-split {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 24px, 1140px);
  }

  h1 {
    font-size: 36px;
  }

  .record {
    grid-template-columns: 1fr;
  }

  .results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-section {
    padding: 18px;
  }
}
