/* Search + encyclopedia */
.sr-view { max-width: 760px; margin: 0 auto; padding: .6rem 1rem 3rem; box-sizing: border-box; font-family: var(--sans); }
.sr-view[hidden] { display: none; }
.sr-h { font: 600 1.5rem var(--serif); color: var(--year); margin: .6rem 0 .5rem; }
.sr-h3 { font: 600 1.1rem var(--serif); color: var(--year); margin: 1.1rem 0 .4rem; }
.sr-form { display: flex; gap: .4rem; }
.sr-form input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 16px; min-height: 44px; padding: .3rem .6rem; border: 1px solid var(--line); border-radius: 10px; background: #fffdf8; color: var(--ink); }
.sr-opts { margin-top: .4rem; } .sr-opts select { flex: 1 1 10rem; min-width: 0; }
.sr-opts select, .sr-filter select { font: inherit; font-size: 15px; min-height: 40px; padding: .2rem .4rem; border: 1px solid var(--line); border-radius: 8px; background: #fffdf8; color: var(--ink); }
a.rd-btn { display: inline-flex; align-items: center; text-decoration: none; }
.sr-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.sr-chip { text-decoration: none; color: var(--accent); background: #fffdf8; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .7rem; font-size: .9rem; }
.sr-tip { font-size: .85rem; color: var(--ink-soft); line-height: 1.45; }
.sr-card { background: #fffdf8; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; margin: .8rem 0; line-height: 1.45; }
.sr-card h3 { margin: 0 0 .3rem; font: 600 1.2rem var(--serif); color: var(--year); }
.sr-kind { margin: 0; font: 700 .7rem var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--accent-soft); }
.sr-also { font-size: .82rem; color: var(--ink-soft); }
.sr-keys { line-height: 2; }
.sr-ref { font: 600 .82rem var(--sans); border: 1px solid var(--line); background: #f8f1e0; color: var(--accent); border-radius: 6px; padding: .15rem .45rem; cursor: pointer; }
.sr-count { margin: .8rem 0 .4rem; } .sr-ms { color: var(--ink-soft); font-size: .8rem; }
.sr-filter { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.sr-seg { display: flex; flex-wrap: wrap; gap: .25rem; }
.sr-segb { font: 600 .82rem var(--sans); min-height: 36px; padding: .2rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: #fffdf8; color: var(--accent); cursor: pointer; }
.sr-segb[aria-pressed="true"] { background: var(--accent); color: #fff8ee; border-color: var(--accent); }
.sr-groups { margin: .5rem 0; font-size: .88rem; } .sr-groups h4 { margin: .5rem 0 .2rem; font: 600 .9rem var(--sans); color: var(--year); }
.sr-bk { font: .8rem var(--sans); border: 1px solid #e3d6b8; background: #fffdf8; border-radius: 6px; padding: .1rem .4rem; margin: .1rem 0; cursor: pointer; color: var(--ink); }
.sr-list { list-style: none; padding: 0; margin: .4rem 0; }
.sr-hit { border-bottom: 1px solid #e8dcc0; padding: .55rem 0; }
.sr-bookh { font: 600 1.05rem var(--serif); color: var(--year); padding: .8rem 0 .1rem; border-bottom: 2px solid var(--line); }
.sr-ref-l { margin: 0 0 .15rem; } .sr-ref-l small { color: var(--ink-soft); }
.sr-open { font: 700 .95rem var(--sans); color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.sr-txt { margin: 0; font-family: var(--serif); font-size: 1.05rem; line-height: 1.55; }
.sr-txt mark { background: rgba(214, 178, 92, .45); color: inherit; border-radius: 3px; padding: 0 1px; }
.sr-act { display: flex; flex-wrap: wrap; gap: .3rem; margin: .35rem 0 0; }
.sr-sm { font: 600 .78rem var(--sans); border: 1px solid var(--line); background: #fffdf8; color: var(--accent); border-radius: 7px; padding: .25rem .5rem; min-height: 32px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.sr-more-wrap { text-align: center; }
.en-fig { margin: .6rem 0; } .en-fig img { width: 100%; height: auto; border-radius: 10px; display: block; background: #e9dfc8; }
.en-fig figcaption { font-size: .74rem; color: var(--ink-soft); margin-top: .25rem; line-height: 1.35; } .en-fig a { color: var(--accent); }
.en-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.en-list a { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fffdf8; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; height: 100%; }
.en-list img { width: 100%; height: 90px; object-fit: cover; } .en-list span { padding: .35rem .5rem; font-weight: 600; font-size: .88rem; }
.en-entry p { line-height: 1.5; }
.sr-mic { font-size: 1.15rem; padding: .3rem .7rem; }
.sr-listening .sr-mic { background: #b22222; color: #fff; border-color: #b22222; animation: srPulse 1.2s ease-in-out infinite; }
@keyframes srPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(178, 34, 34, .45); } 50% { box-shadow: 0 0 0 8px rgba(178, 34, 34, 0); } }
.sr-voice { margin: .35rem 0 0; font-size: .88rem; line-height: 1.4; color: var(--ink-soft); }
.sr-voice:empty { display: none; }
.sr-voice.sr-live { color: #8a2b17; font-weight: 600; }
.sr-voice.sr-warn { color: #8a2b17; background: #fbe9e4; border: 1px solid #e3b5a8; border-radius: 8px; padding: .4rem .6rem; }
@media (prefers-reduced-motion: reduce) { .sr-listening .sr-mic { animation: none; } }
.sr-entimg { max-width: 100%; max-height: 180px; border-radius: 8px; }
.sr-entcard { display: flex; gap: .7em; align-items: center; text-decoration: none; color: inherit; }
.sr-entcard .sr-entimg { width: 72px; height: 72px; object-fit: cover; }
.sr-entcard b, .sr-entcard small { display: block; }
