/* FindEdition Universal Search R3 — scoped to .fe-search-r3 only */

.fe-search-r3 {
  --s3-ink: #0b1220;
  --s3-text: #1a2234;
  --s3-muted: #5f6b7c;
  --s3-soft: #8b95a5;
  --s3-border: #e3e6eb;
  --s3-surface: #f7f8fa;
  --s3-white: #ffffff;
  --s3-blue: #2563eb;
  --s3-blue-hover: #1d4ed8;
  --s3-blue-soft: #eff6ff;
  --s3-radius: 16px;
  --s3-radius-sm: 12px;
  --s3-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.04);
  --s3-max: 1280px;
  --s3-gutter: 24px;
  background: var(--s3-white);
  color: var(--s3-text);
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: 48px;
}

.fe-search-r3 *, .fe-search-r3 *::before, .fe-search-r3 *::after { box-sizing: border-box; }

.fe-search-r3__sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Stage */
.fe-search-r3__stage {
  border-bottom: 1px solid var(--s3-border);
  background: var(--s3-white);
}

.fe-search-r3__stage--empty {
  max-height: none;
  padding: 40px var(--s3-gutter) 28px;
}

.fe-search-r3__stage--results {
  padding: 20px var(--s3-gutter) 16px;
}

.fe-search-r3__stage-inner {
  max-width: var(--s3-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: center;
}

.fe-search-r3__stage-inner--compact {
  grid-template-columns: 1fr;
  gap: 16px;
}

.fe-search-r3__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--s3-blue);
  margin: 0 0 8px;
}

.fe-search-r3__h1 {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--s3-ink);
  margin: 0 0 12px;
}

.fe-search-r3__h1--compact {
  font-size: clamp(28px, 3vw, 34px);
  margin-bottom: 16px;
}

.fe-search-r3__lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--s3-muted);
  max-width: 560px;
  margin: 0 0 24px;
}

/* Search form */
.fe-search-r3__form { position: relative; margin-bottom: 16px; }

.fe-search-r3__field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--s3-white);
  border: 1px solid var(--s3-border);
  border-radius: var(--s3-radius);
  box-shadow: var(--s3-shadow);
  padding: 6px 8px 6px 16px;
  min-height: 62px;
}

.fe-search-r3__field-icon { color: var(--s3-soft); font-size: 18px; flex-shrink: 0; }

.fe-search-r3__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 17px;
  color: var(--s3-ink);
  outline: none;
  padding: 12px 0;
}

.fe-search-r3__input::placeholder { color: var(--s3-soft); }

.fe-search-r3__clear {
  border: 0; background: transparent; color: var(--s3-soft);
  padding: 8px; cursor: pointer; border-radius: 8px;
}
.fe-search-r3__clear:hover { color: var(--s3-text); background: var(--s3-surface); }

.fe-search-r3__scope {
  border: 1px solid var(--s3-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--s3-text);
  background: var(--s3-surface);
  max-width: 140px;
}

.fe-search-r3__submit {
  border: 0;
  background: var(--s3-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.fe-search-r3__submit:hover { background: var(--s3-blue-hover); }

.fe-search-r3__kbd { color: var(--s3-soft); font-size: 13px; padding-right: 4px; }
.fe-search-r3__kbd kbd {
  border: 1px solid var(--s3-border); border-radius: 6px;
  padding: 2px 6px; background: var(--s3-surface); font-size: 12px;
}

/* Scope tabs */
.fe-search-r3__scopes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: var(--s3-surface);
  border-radius: 14px;
  border: 1px solid var(--s3-border);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}

.fe-search-r3__scope-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--s3-muted);
  text-decoration: none;
  white-space: nowrap;
}
.fe-search-r3__scope-tab:hover { color: var(--s3-text); }
.fe-search-r3__scope-tab.is-active {
  background: var(--s3-white);
  color: var(--s3-blue);
  box-shadow: 0 1px 3px rgba(16,24,40,.08);
}

.fe-search-r3__scope-count {
  font-size: 12px;
  color: var(--s3-soft);
  background: var(--s3-surface);
  padding: 2px 7px;
  border-radius: 999px;
}
.fe-search-r3__scope-tab.is-active .fe-search-r3__scope-count { background: var(--s3-blue-soft); color: var(--s3-blue); }

/* Stage media tiles */
.fe-search-r3__stage-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
  min-height: 200px;
}

.fe-search-r3__stage-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--s3-radius-sm);
  text-decoration: none;
  color: #fff;
  border: 1px solid var(--s3-border);
}
.fe-search-r3__stage-tile--1 { grid-row: span 2; }
.fe-search-r3__stage-tile img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 100px; }
.fe-search-r3__stage-tile--1 img { min-height: 210px; }
.fe-search-r3__stage-tile-label,
.fe-search-r3__stage-tile-title {
  position: absolute; left: 10px; right: 10px;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.fe-search-r3__stage-tile-label { top: 10px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .9; }
.fe-search-r3__stage-tile-title { bottom: 10px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.fe-search-r3__stage-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 55%);
}

/* Autocomplete */
.fe-search-r3__ac {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: var(--s3-white); border: 1px solid var(--s3-border);
  border-radius: var(--s3-radius); box-shadow: var(--s3-shadow);
  z-index: 40; max-height: 380px; overflow: auto;
}
.fe-search-r3__ac-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; }
.fe-search-r3__ac-col { padding: 12px; }
.fe-search-r3__ac-col + .fe-search-r3__ac-col { border-left: 1px solid var(--s3-border); }
.fe-search-r3__ac-head { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--s3-soft); margin: 0 0 8px; }
.fe-search-r3__ac-item {
  display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px;
  text-decoration: none; color: var(--s3-text);
}
.fe-search-r3__ac-item:hover { background: var(--s3-surface); }
.fe-search-r3__ac-item img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.fe-search-r3__ac-item strong { display: block; font-size: 14px; }
.fe-search-r3__ac-item small { color: var(--s3-soft); font-size: 12px; }
.fe-search-r3__ac-suggest {
  display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none;
  color: var(--s3-text); font-size: 14px;
}
.fe-search-r3__ac-suggest:hover { background: var(--s3-surface); color: var(--s3-blue); }

/* Discovery */
.fe-search-r3__discovery {
  max-width: var(--s3-max);
  margin: 0 auto;
  padding: 32px var(--s3-gutter) 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.fe-search-r3__section-title {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--s3-ink); margin: 0 0 16px;
}
.fe-search-r3__section-label { font-size: 14px; font-weight: 600; color: var(--s3-muted); margin: 0 0 8px; }

.fe-search-r3__recent-chips {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; align-items: center;
}
.fe-search-r3__recent-chips li { display: inline-flex; align-items: center; gap: 4px; }
.fe-search-r3__recent-chip {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  background: var(--s3-surface); border: 1px solid var(--s3-border);
  font-size: 14px; color: var(--s3-text); text-decoration: none;
}
.fe-search-r3__recent-chip:hover { border-color: var(--s3-blue); color: var(--s3-blue); }
.fe-search-r3__recent-x { border: 0; background: transparent; color: var(--s3-soft); cursor: pointer; font-size: 16px; padding: 4px; }
.fe-search-r3__text-btn { border: 0; background: transparent; color: var(--s3-blue); font-size: 13px; cursor: pointer; margin-left: 8px; }

.fe-search-r3__trend-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.fe-search-r3__trend-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--s3-border); border-radius: var(--s3-radius-sm);
  text-decoration: none; color: var(--s3-text); background: var(--s3-white);
}
.fe-search-r3__trend-item:hover { border-color: #c7d2fe; background: var(--s3-blue-soft); }
.fe-search-r3__trend-rank { font-size: 13px; font-weight: 700; color: var(--s3-soft); min-width: 18px; }
.fe-search-r3__trend-text { flex: 1; font-size: 15px; font-weight: 500; }
.fe-search-r3__trend-mod { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--s3-soft); }

.fe-search-r3__explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.fe-search-r3__explore-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border: 1px solid var(--s3-border); border-radius: var(--s3-radius);
  text-decoration: none; color: var(--s3-text); background: var(--s3-white);
  transition: border-color .15s, box-shadow .15s;
}
.fe-search-r3__explore-card:hover { border-color: #cbd5e1; box-shadow: var(--s3-shadow); }
.fe-search-r3__explore-visual img { width: 72px; height: 48px; object-fit: contain; border-radius: 8px; }
.fe-search-r3__explore-title { font-size: 16px; font-weight: 600; margin: 0 0 4px; color: var(--s3-ink); }
.fe-search-r3__explore-desc { font-size: 14px; color: var(--s3-muted); margin: 0; line-height: 1.45; }

/* Popular */
.fe-search-r3__popular-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.fe-search-r3__popular-lead {
  display: block; border-radius: var(--s3-radius); overflow: hidden;
  border: 1px solid var(--s3-border); text-decoration: none; color: var(--s3-text);
  background: var(--s3-white);
}
.fe-search-r3__popular-lead:hover { box-shadow: var(--s3-shadow); }
.fe-search-r3__popular-lead-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.fe-search-r3__popular-lead-body { padding: 16px 18px 20px; }
.fe-search-r3__popular-lead-title { font-size: 20px; font-weight: 700; margin: 6px 0 8px; color: var(--s3-ink); line-height: 1.25; }
.fe-search-r3__popular-mod { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--s3-soft); }
.fe-search-r3__popular-meta { font-size: 14px; color: var(--s3-muted); margin: 0; }
.fe-search-r3__popular-side { display: flex; flex-direction: column; gap: 10px; }
.fe-search-r3__popular-item {
  display: flex; gap: 12px; align-items: center; padding: 12px;
  border: 1px solid var(--s3-border); border-radius: var(--s3-radius-sm);
  text-decoration: none; color: var(--s3-text);
}
.fe-search-r3__popular-item:hover { border-color: #cbd5e1; }
.fe-search-r3__popular-item img { width: 88px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.fe-search-r3__popular-item-title { font-size: 15px; font-weight: 600; margin: 4px 0 2px; line-height: 1.3; color: var(--s3-ink); }

/* Results body */
.fe-search-r3__body {
  max-width: var(--s3-max);
  margin: 0 auto;
  padding: 24px var(--s3-gutter) 0;
}

.fe-search-r3__toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.fe-search-r3__summary { margin: 0; font-size: 15px; color: var(--s3-muted); }
.fe-search-r3__summary strong { color: var(--s3-ink); font-weight: 600; }
.fe-search-r3__summary-scope, .fe-search-r3__timing { margin-left: 6px; font-size: 14px; color: var(--s3-soft); }

.fe-search-r3__toolbar-actions { display: flex; align-items: center; gap: 10px; }
.fe-search-r3__sort select {
  border: 1px solid var(--s3-border); border-radius: 10px; padding: 10px 12px;
  font-size: 14px; color: var(--s3-text); background: var(--s3-white);
}
.fe-search-r3__filter-btn {
  display: none; align-items: center; gap: 8px;
  border: 1px solid var(--s3-border); background: var(--s3-white);
  padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 500;
  cursor: pointer; color: var(--s3-text); min-height: 44px;
}
.fe-search-r3__filter-badge {
  background: var(--s3-blue); color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
}

.fe-search-r3__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.fe-search-r3__chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  background: var(--s3-blue-soft); border: 1px solid #bfdbfe;
  font-size: 13px; color: var(--s3-text);
}
.fe-search-r3__chip-remove { color: var(--s3-muted); text-decoration: none; font-size: 16px; line-height: 1; }
.fe-search-r3__chip-clear { font-size: 13px; color: var(--s3-blue); text-decoration: none; margin-left: 4px; }

.fe-search-r3__grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* Filters sidebar */
.fe-search-r3__filters {
  position: sticky; top: 88px;
  background: var(--s3-white);
  border: 1px solid var(--s3-border);
  border-radius: var(--s3-radius);
  padding: 16px;
}

.fe-search-r3__filters-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--s3-border);
}
.fe-search-r3__filters-title { font-size: 16px; font-weight: 600; margin: 0; flex: 1; color: var(--s3-ink); }
.fe-search-r3__filters-count { font-size: 12px; color: var(--s3-soft); }
.fe-search-r3__filters-reset { font-size: 13px; color: var(--s3-blue); text-decoration: none; }

.fe-search-r3__facet { border-bottom: 1px solid var(--s3-border); padding: 10px 0; }
.fe-search-r3__facet:last-child { border-bottom: 0; }
.fe-search-r3__facet summary {
  font-size: 14px; font-weight: 600; color: var(--s3-text);
  cursor: pointer; list-style: none; padding: 4px 0;
}
.fe-search-r3__facet summary::-webkit-details-marker { display: none; }
.fe-search-r3__facet-list { list-style: none; margin: 8px 0 0; padding: 0; }
.fe-search-r3__facet-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 6px; border-radius: 8px; text-decoration: none;
  font-size: 14px; color: var(--s3-muted);
}
.fe-search-r3__facet-link:hover { background: var(--s3-surface); color: var(--s3-text); }
.fe-search-r3__facet-link.is-active { color: var(--s3-blue); font-weight: 600; background: var(--s3-blue-soft); }
.fe-search-r3__facet-count { font-size: 13px; color: var(--s3-soft); }

/* Top result */
.fe-search-r3__top { margin-bottom: 24px; }
.fe-search-r3__top-eyebrow {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--s3-blue); margin: 0 0 10px;
}
.fe-search-r3__top-card {
  display: grid; grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px; padding: 20px;
  border: 1px solid #bfdbfe; border-radius: var(--s3-radius);
  background: linear-gradient(135deg, #fafcff 0%, #fff 60%);
  max-height: 250px; overflow: hidden;
}
.fe-search-r3__top-media { display: block; border-radius: 12px; overflow: hidden; }
.fe-search-r3__top-media .fe-search-r3__thumb { width: 100%; height: 180px; border-radius: 12px; }
.fe-search-r3__top-media .fe-search-r3__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fe-search-r3__top-title { font-size: 22px; font-weight: 700; margin: 0 0 8px; line-height: 1.25; }
.fe-search-r3__top-title a { color: var(--s3-ink); text-decoration: none; }
.fe-search-r3__top-title a:hover { color: var(--s3-blue); }
.fe-search-r3__top-excerpt { font-size: 15px; color: var(--s3-muted); margin: 0 0 8px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fe-search-r3__top-reason { font-size: 13px; color: var(--s3-soft); margin: 0 0 10px; }
.fe-search-r3__top-cta {
  display: inline-flex; margin-top: 12px; padding: 10px 18px;
  background: var(--s3-blue); color: #fff; border-radius: 10px;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.fe-search-r3__top-cta:hover { background: var(--s3-blue-hover); }

.fe-search-r3__best { margin-bottom: 24px; }
.fe-search-r3__best-title { font-size: 18px; font-weight: 700; margin: 0 0 12px; color: var(--s3-ink); }
.fe-search-r3__best-list { display: flex; flex-direction: column; gap: 12px; }

/* Result cards */
.fe-search-r3__list { display: flex; flex-direction: column; gap: 12px; }

.fe-search-r3__result {
  border: 1px solid var(--s3-border);
  border-radius: var(--s3-radius-sm);
  background: var(--s3-white);
  transition: border-color .15s, box-shadow .15s;
}
.fe-search-r3__result:hover { border-color: #cbd5e1; box-shadow: var(--s3-shadow); }

.fe-search-r3__result-link {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  min-height: 132px;
  align-items: center;
}

.fe-search-r3__thumb {
  width: 176px; height: 112px; border-radius: 12px; overflow: hidden;
  background: var(--s3-surface); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fe-search-r3__thumb--poster { width: 88px; height: 132px; }
.fe-search-r3__thumb--product { background: #f8fafc; }
.fe-search-r3__thumb img { width: 100%; height: 100%; display: block; }

.fe-search-r3__initials {
  font-size: 28px; font-weight: 700; color: var(--s3-white);
  width: 56px; height: 56px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.fe-search-r3__thumb--editorial .fe-search-r3__initials { background: #475569; }
.fe-search-r3__thumb--entertainment .fe-search-r3__initials { background: #7c3aed; }
.fe-search-r3__thumb--product .fe-search-r3__initials { background: #0891b2; }
.fe-search-r3__thumb--recipe .fe-search-r3__initials { background: #059669; }
.fe-search-r3__thumb--community .fe-search-r3__initials { background: #0d9488; }
.fe-search-r3__thumb--work .fe-search-r3__initials { background: #d97706; }
.fe-search-r3__thumb--tool .fe-search-r3__initials { background: #4f46e5; }

.fe-search-r3__result-kicker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.fe-search-r3__type {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--s3-soft);
}
.fe-search-r3__type--entertainment { color: #7c3aed; }
.fe-search-r3__type--product { color: #0891b2; }
.fe-search-r3__type--recipe { color: #059669; }
.fe-search-r3__type--community { color: #0d9488; }
.fe-search-r3__type--work { color: #d97706; }
.fe-search-r3__type--tool { color: #4f46e5; }

.fe-search-r3__cat { font-size: 13px; color: var(--s3-soft); }
.fe-search-r3__result-title {
  font-size: 18px; font-weight: 600; line-height: 1.35;
  color: var(--s3-ink); margin: 0 0 6px;
}
.fe-search-r3__result-link:hover .fe-search-r3__result-title { color: var(--s3-blue); }
.fe-search-r3__result-sub { font-size: 14px; color: var(--s3-muted); margin: 0 0 4px; }
.fe-search-r3__result-excerpt {
  font-size: 15px; color: var(--s3-muted); margin: 0 0 8px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fe-search-r3__result-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0; padding: 0;
  font-size: 13px; color: var(--s3-soft);
}

.fe-search-r3__mark {
  background: #dbeafe; color: var(--s3-ink);
  padding: 0 2px; border-radius: 3px;
}

/* No results */
.fe-search-r3__no-results {
  padding: 32px 24px; border: 1px solid var(--s3-border);
  border-radius: var(--s3-radius); background: var(--s3-surface);
  max-width: 640px;
}
.fe-search-r3__no-results h2 { font-size: 22px; margin: 0 0 8px; color: var(--s3-ink); }
.fe-search-r3__no-results p { font-size: 15px; color: var(--s3-muted); margin: 0 0 12px; }
.fe-search-r3__no-results-modules, .fe-search-r3__no-results-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fe-search-r3__chip-link, .fe-search-r3__no-results-chips a {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--s3-border);
  background: var(--s3-white); font-size: 14px; color: var(--s3-text); text-decoration: none;
}
.fe-search-r3__chip-link:hover, .fe-search-r3__no-results-chips a:hover { border-color: var(--s3-blue); color: var(--s3-blue); }
.fe-search-r3__btn { display: inline-flex; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; }
.fe-search-r3__btn--ghost { border: 1px solid var(--s3-border); color: var(--s3-text); background: var(--s3-white); }

.fe-search-r3__notice {
  padding: 12px 14px; border-radius: 10px; background: #fffbeb;
  border: 1px solid #fde68a; font-size: 14px; color: #92400e; margin-bottom: 16px;
}

/* Pagination */
.fe-search-r3__pagination {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; align-items: center;
}
.fe-search-r3__page {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px; padding: 0 12px;
  border-radius: 10px; border: 1px solid var(--s3-border);
  font-size: 14px; color: var(--s3-text); text-decoration: none; background: var(--s3-white);
}
.fe-search-r3__page.is-current { background: var(--s3-blue); border-color: var(--s3-blue); color: #fff; font-weight: 600; }
.fe-search-r3__page.is-disabled { opacity: .45; pointer-events: none; }

/* Mobile drawer */
.fe-search-r3__drawer[hidden] { display: none; }
.fe-search-r3__drawer { position: fixed; inset: 0; z-index: 100; }
.fe-search-r3__drawer-backdrop { position: absolute; inset: 0; background: rgba(11,18,32,.4); }
.fe-search-r3__drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(100%, 360px);
  background: var(--s3-white); overflow: auto; padding: 16px;
  box-shadow: -8px 0 32px rgba(16,24,40,.12);
}
.fe-search-r3__drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fe-search-r3__drawer-head h2 { font-size: 18px; margin: 0; }
.fe-search-r3__drawer-close { border: 0; background: transparent; font-size: 24px; cursor: pointer; color: var(--s3-muted); min-width: 44px; min-height: 44px; }
.fe-search-r3__drawer-body .fe-search-r3__filters { position: static; border: 0; padding: 0; }

/* Entertainment result poster layout */
.fe-search-r3__result--entertainment .fe-search-r3__result-link {
  grid-template-columns: 88px minmax(0, 1fr);
  min-height: 148px;
}

/* Responsive */
@media (max-width: 1024px) {
  .fe-search-r3__stage-inner { grid-template-columns: 1fr; }
  .fe-search-r3__stage-media { max-width: 480px; }
  .fe-search-r3__explore-grid { grid-template-columns: repeat(2, 1fr); }
  .fe-search-r3__popular-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .fe-search-r3 { --s3-gutter: 16px; }
  .fe-search-r3__grid { grid-template-columns: 1fr; }
  .fe-search-r3__filters { display: none; }
  .fe-search-r3__filter-btn { display: inline-flex; }
  .fe-search-r3__field { flex-wrap: wrap; min-height: auto; padding: 10px; }
  .fe-search-r3__scope { max-width: none; flex: 1; }
  .fe-search-r3__submit { width: 100%; justify-content: center; }
  .fe-search-r3__kbd { display: none; }
  .fe-search-r3__scopes { width: 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fe-search-r3__trend-list { grid-template-columns: 1fr; }
  .fe-search-r3__explore-grid { grid-template-columns: 1fr; }
  .fe-search-r3__result-link {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px; padding: 14px; min-height: auto;
  }
  .fe-search-r3__thumb:not(.fe-search-r3__thumb--poster) { width: 96px; height: 72px; }
  .fe-search-r3__thumb--poster { width: 72px; height: 108px; }
  .fe-search-r3__result-title { font-size: 16px; }
  .fe-search-r3__result-excerpt { font-size: 14px; -webkit-line-clamp: 2; }
  .fe-search-r3__top-card { grid-template-columns: 1fr; max-height: none; }
  .fe-search-r3__top-media .fe-search-r3__thumb { height: 160px; }
  .fe-search-r3__ac-grid { grid-template-columns: 1fr; }
  .fe-search-r3__ac-col + .fe-search-r3__ac-col { border-left: 0; border-top: 1px solid var(--s3-border); }
}

@media (prefers-reduced-motion: reduce) {
  .fe-search-r3__result, .fe-search-r3__explore-card, .fe-search-r3__popular-lead { transition: none; }
}
