:root {
  --aoef-ink: #221f36;
  --aoef-muted: #737382;
  --aoef-line: #e8e8ef;
  --aoef-bg: #f7f7fb;
  --aoef-card: #ffffff;
  --aoef-purple: #7557e8;
  --aoef-purple-dark: #5038bd;
  --aoef-pink: #ff5e95;
  --aoef-cyan: #29b8d0;
  --aoef-radius: 22px;
  --aoef-shadow: 0 20px 60px rgba(28, 24, 64, 0.1);
}

.aoef,
.aoef * { box-sizing: border-box; }

.aoef {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  color: var(--aoef-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.65;
}

.aoef button,
.aoef input { font: inherit; }

/* The search tool is the homepage's primary content. Hide theme metadata only there. */
body.home #breadcrumb,
body.home #article-header,
body.home #mainEntity > .clearfix > .meta {
  display: none !important;
}

/*
 * Keep WordPress theme heading decorations out of the plugin UI.
 * The scoped, intentionally strong selectors make these rules win even when
 * a theme styles headings inside .entry-content with !important declarations.
 */
section[data-aoef-app].aoef .aoef__title,
section[data-aoef-app].aoef .aoef-section-head h3,
section[data-aoef-app].aoef .aoef-theme-card__details h4 {
  position: static !important;
  width: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-indent: 0 !important;
  text-decoration: none !important;
  text-transform: none !important;
}

section[data-aoef-app].aoef .aoef__title::before,
section[data-aoef-app].aoef .aoef__title::after,
section[data-aoef-app].aoef .aoef-section-head h3::before,
section[data-aoef-app].aoef .aoef-section-head h3::after,
section[data-aoef-app].aoef .aoef-theme-card__details h4::before,
section[data-aoef-app].aoef .aoef-theme-card__details h4::after {
  content: none !important;
  display: none !important;
}

.aoef .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.aoef__hero {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 7vw, 84px) clamp(300px, 32vw, 410px) clamp(42px, 7vw, 84px) clamp(22px, 6vw, 76px);
  border: 1px solid rgba(117, 87, 232, 0.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 94, 149, 0.2), transparent 25%),
    radial-gradient(circle at 75% 90%, rgba(41, 184, 208, 0.16), transparent 26%),
    linear-gradient(135deg, #fbfaff 0%, #f5f1ff 58%, #fff8fc 100%);
  box-shadow: var(--aoef-shadow);
}

.aoef__hero::after {
  content: none !important;
  display: none !important;
}

.aoef__hero > .aoef__character {
  display: block;
  position: absolute;
  right: -18px;
  bottom: 10px;
  z-index: 0;
  width: clamp(280px, 36vw, 500px);
  max-width: 44%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.aoef__hero > * { position: relative; z-index: 1; }

.aoef__eyebrow,
.aoef-section-head__kicker {
  color: var(--aoef-purple);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.aoef__eyebrow span {
  display: inline-block;
  width: 28px;
  height: 2px;
  margin: 0 9px 3px 0;
  background: var(--aoef-purple);
}

section[data-aoef-app].aoef .aoef__title {
  max-width: none !important;
  margin: 16px 0 14px !important;
  color: #151520 !important;
  font-size: clamp(20px, 4.2vw, 54px) !important;
  font-weight: 900 !important;
  line-height: 1.14 !important;
  letter-spacing: -0.045em !important;
  white-space: nowrap !important;
}

section[data-aoef-app].aoef .aoef__title em {
  color: #7c3aed !important;
  font-style: normal !important;
}

.aoef__lead {
  max-width: 610px;
  margin: 0 0 30px;
  color: #646475;
  font-size: clamp(14px, 2vw, 17px);
}

.aoef-search {
  display: flex;
  align-items: center;
  max-width: 720px;
  padding: 7px;
  border: 1px solid rgba(117, 87, 232, 0.18);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(66, 50, 134, 0.12);
}

.aoef-search__icon {
  width: 19px;
  height: 19px;
  margin: 0 6px 0 14px;
  border: 2px solid #9694a6;
  border-radius: 50%;
}

.aoef-search__icon::after {
  content: "";
  display: block;
  width: 7px;
  height: 2px;
  margin: 14px 0 0 13px;
  transform: rotate(45deg);
  background: #9694a6;
}

.aoef-search input {
  min-width: 0;
  flex: 1;
  padding: 12px 10px;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--aoef-ink);
}

.aoef-search button,
.aoef-button,
.aoef-play {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.aoef-search button {
  min-width: 105px;
  padding: 12px 22px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--aoef-purple), var(--aoef-purple-dark));
  box-shadow: 0 8px 18px rgba(117, 87, 232, 0.3);
  color: #fff;
}

.aoef-search button:hover,
.aoef-play:hover,
.aoef-button:hover { transform: translateY(-1px); }

.aoef-search button:disabled { cursor: wait; opacity: 0.65; }

.aoef-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--aoef-muted);
  font-size: 12px;
}

.aoef-examples button {
  padding: 6px 11px;
  border: 1px solid rgba(117, 87, 232, 0.16);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  color: #605d70;
  cursor: pointer;
}

.aoef__status {
  margin: 24px 0;
  padding: 17px 20px;
  border-radius: 14px;
  text-align: center;
}

.aoef__status--loading,
.aoef__status--notice { background: #f2efff; color: #5145a2; }
.aoef__status--error { background: #fff0f3; color: #a42e4f; }

.aoef__content {
  padding: clamp(34px, 5vw, 64px) 0 20px;
  scroll-margin-top: 40px;
  transition: opacity .2s ease;
}

.aoef__content.is-muted { opacity: .45; pointer-events: none; }

.aoef-section-head,
.aoef-theme-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

section[data-aoef-app].aoef .aoef-section-head h3 {
  margin: 6px 0 0 !important;
  color: var(--aoef-ink) !important;
  font-size: clamp(24px, 4vw, 36px) !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
}

.aoef-count,
.aoef-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  white-space: nowrap;
}

.aoef-count {
  padding: 5px 12px;
  background: #eeebfa;
  color: #6051a9;
  font-size: 12px;
  font-weight: 800;
}

.aoef-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.aoef-anime-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--aoef-line);
  border-radius: var(--aoef-radius);
  background: var(--aoef-card);
  box-shadow: 0 8px 24px rgba(31, 28, 55, 0.07);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.aoef-anime-card:hover {
  transform: translateY(-5px);
  border-color: rgba(117,87,232,.35);
  box-shadow: 0 18px 34px rgba(31, 28, 55, 0.12);
}

.aoef-anime-card__cover {
  display: grid;
  aspect-ratio: 4 / 5;
  place-items: center;
  overflow: hidden;
  background: #eeedf5;
  color: #9995ab;
  font-size: 11px;
  letter-spacing: .15em;
}

.aoef-anime-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.aoef-anime-card__body { display: flex; flex-direction: column; min-height: 190px; padding: 18px; }
.aoef-anime-card__meta { color: var(--aoef-purple); font-size: 11px; font-weight: 800; }
.aoef-anime-card__title { margin-top: 7px; font-size: 16px; line-height: 1.45; }
.aoef-anime-card__sub,
.aoef-anime-card__studio { display: -webkit-box; overflow: hidden; margin-top: 5px; color: var(--aoef-muted); font-size: 11px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.aoef-anime-card__arrow { margin-top: auto; padding-top: 15px; color: var(--aoef-purple); font-size: 12px; font-weight: 800; }

.aoef-back {
  margin-bottom: 20px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--aoef-purple);
  cursor: pointer;
  font-weight: 700;
}

.aoef-selected {
  display: flex;
  gap: clamp(20px, 4vw, 38px);
  align-items: center;
  margin-bottom: 48px;
  padding: clamp(20px, 4vw, 34px);
  border-radius: var(--aoef-radius);
  background: linear-gradient(135deg, #191827, #292442);
  color: #fff;
  box-shadow: var(--aoef-shadow);
}

.aoef-selected > img { width: 150px; aspect-ratio: 4 / 5; border-radius: 14px; object-fit: cover; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.aoef-selected__title { margin: 6px 0 8px; color: #fff; font-size: clamp(25px, 4vw, 40px); font-weight: 900; line-height: 1.3; }
.aoef-selected__meta,
.aoef-selected__studio { margin: 3px 0; color: #c7c4d8; font-size: 13px; }
.aoef-selected__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 18px; }
.aoef-button--ghost { padding: 9px 15px; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; }
.aoef-text-link { color: #d6ccff !important; font-size: 13px; text-decoration: none !important; }

.aoef-theme-heading { align-items: center; margin: 42px 0 16px; }
.aoef-theme-heading > div { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 850; }
.aoef-theme-heading__mark { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; color: #fff; font-size: 15px; font-weight: 900; }
.aoef-theme-heading--op .aoef-theme-heading__mark { background: linear-gradient(135deg, var(--aoef-pink), #f1447d); }
.aoef-theme-heading--ed .aoef-theme-heading__mark { background: linear-gradient(135deg, var(--aoef-cyan), #168fa7); }

.aoef-theme-list { display: grid; gap: 12px; }
.aoef-theme-card { display: grid; grid-template-columns: 74px minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 18px 20px; border: 1px solid var(--aoef-line); border-radius: 17px; background: #fff; box-shadow: 0 6px 20px rgba(31,28,55,.045); }
.aoef-theme-card__index { display: grid; width: 62px; height: 62px; place-items: center; border-radius: 15px; font-size: 16px; font-weight: 900; }
.aoef-theme-card__index--op { background: #fff0f5; color: #db3f74; }
.aoef-theme-card__index--ed { background: #eafafd; color: #168da1; }
.aoef-theme-card__details { display: flex; align-items: center; gap: 12px; min-width: 0; }
.aoef-theme-card__artwork { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 8px; object-fit: cover; background: var(--aoef-bg); box-shadow: 0 2px 8px rgba(31,28,55,.10); }
.aoef-theme-card__text { min-width: 0; }
section[data-aoef-app].aoef .aoef-theme-card__details h4 { margin: 0 0 2px !important; color: var(--aoef-ink) !important; font-size: 17px !important; font-weight: 800 !important; line-height: 1.4 !important; }
.aoef-theme-card__details p { margin: 0; color: var(--aoef-muted); font-size: 13px; }
.aoef-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.aoef-chip { padding: 3px 8px; background: var(--aoef-bg); color: #6d697e; font-size: 10px; font-weight: 700; }
.aoef-play { min-width: 96px; padding: 10px 14px; border-radius: 10px; background: #1b1a27; color: #fff; }
.aoef-unavailable { color: #aaa7b3; font-size: 12px; }
.aoef-note { margin: 30px 0 0; color: #9693a0; font-size: 10px; text-align: right; }
.aoef-empty { padding: 30px; border-radius: 18px; background: var(--aoef-bg); text-align: center; }

.aoef-player {
  width: min(900px, calc(100vw - 30px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #12111a;
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
  color: #fff;
}
.aoef-player::backdrop { background: rgba(12,10,22,.78); backdrop-filter: blur(5px); }
.aoef-player__bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 20px; }
.aoef-player__bar strong { margin-right: 12px; color: #cdbfff; }
.aoef-player__bar span { color: #d1ceda; font-size: 13px; }
.aoef-player__close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; font-size: 24px; line-height: 1; }
.aoef-player__media { aspect-ratio: 16 / 9; background: #000; }
.aoef-player__media video,
.aoef-player__media iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (max-width: 900px) {
  .aoef__hero { padding-right: clamp(190px, 30vw, 250px); }
  .aoef__hero > .aoef__character { right: 0; width: clamp(180px, 32vw, 260px); max-width: 35%; }
  .aoef-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .aoef__hero {
    padding: 32px 20px 128px;
    border-radius: 22px;
  }
  section[data-aoef-app].aoef .aoef__title { letter-spacing: -0.06em !important; }
  .aoef__hero > .aoef__character {
    right: 8px;
    bottom: 16px;
    width: clamp(110px, 44vw, 165px);
    max-width: 48.5%;
  }
  .aoef-search { padding: 5px; }
  .aoef-search button { min-width: 78px; padding-inline: 13px; }
  .aoef-search__icon { margin-left: 9px; }
  .aoef-examples span { width: 100%; }
  .aoef-results { gap: 11px; }
  .aoef-anime-card { border-radius: 15px; }
  .aoef-anime-card__body { min-height: 165px; padding: 13px; }
  .aoef-anime-card__title { font-size: 14px; }
  .aoef-selected { align-items: flex-start; padding: 18px; }
  .aoef-selected > img { width: 92px; }
  .aoef-selected__title { font-size: 21px; }
  .aoef-theme-card { grid-template-columns: 55px minmax(0,1fr); gap: 12px; padding: 14px; }
  .aoef-theme-card__index { width: 50px; height: 50px; border-radius: 12px; font-size: 14px; }
  .aoef-theme-card__artwork { width: 44px; height: 44px; flex-basis: 44px; border-radius: 7px; }
  .aoef-theme-card__action { grid-column: 2; }
  .aoef-play { width: 100%; }
  .aoef-player__bar span { display: block; margin-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .aoef *, .aoef *::before, .aoef *::after { scroll-behavior: auto !important; transition: none !important; }
}
\n\n/* v0.2.1: OP/ED取得中・未登録/エラーを結果エリア内で大きく表示 */\n.aoef-theme-notice {\n  display: flex;\n  align-items: center;\n  gap: 18px;\n  width: 100%;\n  margin: 18px 0 12px;\n  padding: clamp(22px, 4vw, 34px);\n  border: 1px solid rgba(117, 87, 232, .2);\n  border-radius: 20px;\n  background: linear-gradient(135deg, #f8f5ff 0%, #fff 100%);\n  box-shadow: 0 12px 34px rgba(48, 39, 96, .08);\n}\n.aoef-theme-notice--error {\n  border-color: rgba(207, 62, 91, .22);\n  background: linear-gradient(135deg, #fff3f5 0%, #fff 100%);\n}\n.aoef-theme-notice__icon {\n  display: grid;\n  flex: 0 0 54px;\n  width: 54px;\n  height: 54px;\n  place-items: center;\n  border-radius: 50%;\n  background: var(--aoef-purple);\n  color: #fff;\n  font-size: 24px;\n  font-weight: 900;\n  box-shadow: 0 8px 22px rgba(117, 87, 232, .28);\n}\n.aoef-theme-notice--error .aoef-theme-notice__icon { background: #cf3e5b; box-shadow: 0 8px 22px rgba(207, 62, 91, .22); }\n.aoef-theme-notice__body { min-width: 0; }\n.aoef-theme-notice__title { display: block; color: #27223f; font-size: clamp(18px, 3vw, 24px); line-height: 1.35; }\n.aoef-theme-notice--error .aoef-theme-notice__title { color: #9d2945; }\n.aoef-theme-notice__text, .aoef-theme-notice__hint { margin: 7px 0 0; color: #696579; font-size: 14px; }\n.aoef-theme-notice__hint { font-size: 13px; }\n.aoef-theme-notice__dots { display: inline-block; margin-top: 3px; color: var(--aoef-purple); letter-spacing: .25em; animation: aoef-pulse 1.15s ease-in-out infinite; }\n@keyframes aoef-pulse { 0%,100% { opacity: .25; } 50% { opacity: 1; } }\n.aoef-anime-card__arrow { color: var(--aoef-purple); font-weight: 800; }\n@media (max-width: 600px) {\n  .aoef-theme-notice { align-items: flex-start; gap: 13px; padding: 20px 17px; }\n  .aoef-theme-notice__icon { flex-basis: 44px; width: 44px; height: 44px; font-size: 20px; }\n}\n
/* v0.2.3: character-based OP/ED loading animation */
.aoef-theme-loading {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 32px;
  padding: clamp(18px, 4vw, 36px) 18px;
  text-align: center;
}

.aoef-theme-loading__visual {
  width: min(330px, 76vw);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.aoef-theme-loading__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.aoef-theme-loading__text {
  min-height: 1.7em;
  color: var(--aoef-ink);
  font-size: clamp(17px, 2.6vw, 22px);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .01em;
}

@media (max-width: 600px) {
  .aoef-theme-loading {
    min-height: 310px;
    padding-top: 10px;
  }

  .aoef-theme-loading__visual {
    width: min(250px, 72vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .aoef-theme-loading__image {
    transition: none !important;
  }
}


/* v0.2.4: center aligned loading + friendly empty state */
.aoef-theme-loading {
  width: 100%;
  align-items: center !important;
  justify-content: center;
  text-align: center;
}

.aoef-theme-loading__visual {
  margin-inline: auto;
}

.aoef-theme-loading__image {
  margin-inline: auto;
  object-position: center center;
}

.aoef-theme-loading__text {
  width: 100%;
  margin: 0 auto;
  color: #1B1A2A;
  text-align: center;
}

.aoef-theme-empty {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 8px 0 32px;
  padding: clamp(18px, 4vw, 36px) 18px;
  text-align: center;
}

.aoef-theme-empty__visual {
  width: min(330px, 76vw);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  margin-inline: auto;
}

.aoef-theme-empty__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  user-select: none;
  pointer-events: none;
  margin-inline: auto;
}

.aoef-theme-empty__body {
  max-width: 560px;
  margin: 0 auto;
}

.aoef-theme-empty__title {
  display: block;
  color: #1B1A2A;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
  line-height: 1.4;
}

.aoef-theme-empty__text {
  margin: 8px 0 0;
  color: #5B5A69;
  font-size: 15px;
  line-height: 1.8;
}

.aoef-theme-empty__hint {
  margin: 6px 0 0;
  color: #7A7888;
  font-size: 13px;
  line-height: 1.75;
}

@media (max-width: 600px) {
  .aoef-theme-empty {
    min-height: 310px;
    padding-top: 10px;
  }

  .aoef-theme-empty__visual {
    width: min(250px, 72vw);
  }
}


/* v0.2.5: candidate expansion */
.aoef-anime-card[hidden] {
  display: none !important;
}

.aoef-more {
  display: flex;
  justify-content: center;
  padding: 28px 0 8px;
}

.aoef-more__button {
  min-width: min(320px, 100%);
  padding: 13px 24px;
  border: 1px solid rgba(117, 87, 232, .24);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(31, 28, 55, .07);
  color: var(--aoef-purple-dark);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.aoef-more__button:hover {
  transform: translateY(-1px);
  border-color: rgba(117, 87, 232, .45);
  box-shadow: 0 10px 28px rgba(31, 28, 55, .10);
}


/* v0.2.8: hero-style redirect search shortcode with automatic article-title prefill */
.aoef-search-box,
.aoef-search-box * {
  box-sizing: border-box;
}

.aoef-search-box {
  position: relative;
  width: 100%;
  min-height: 330px;
  margin: 24px auto;
  overflow: hidden;
  padding: clamp(34px, 5vw, 58px) clamp(250px, 28vw, 350px) clamp(34px, 5vw, 58px) clamp(24px, 5vw, 64px);
  border: 1px solid rgba(117, 87, 232, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 94, 149, 0.19), transparent 27%),
    radial-gradient(circle at 74% 92%, rgba(41, 184, 208, 0.12), transparent 28%),
    linear-gradient(135deg, #fbfaff 0%, #f5f1ff 58%, #fff8fc 100%);
  box-shadow: 0 18px 50px rgba(28, 24, 64, 0.09);
  color: #1B1A2A;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.aoef-search-box .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.aoef-search-box__content {
  position: relative;
  z-index: 2;
}

.aoef-search-box__eyebrow {
  color: #7557e8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.aoef-search-box__eyebrow span {
  display: inline-block;
  width: 28px;
  height: 2px;
  margin: 0 9px 3px 0;
  background: #7557e8;
}

.aoef-search-box__headline {
  margin: 15px 0 13px;
  color: #151520;
  font-size: clamp(25px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.045em;
}

.aoef-search-box__headline em {
  color: #7c3aed;
  font-style: normal;
}

.aoef-search-box__lead {
  max-width: 610px;
  margin: 0 0 24px;
  color: #646475;
  font-size: clamp(13px, 1.7vw, 16px);
  line-height: 1.7;
}

.aoef-search-box__form {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 720px;
  padding: 7px;
  border: 1px solid rgba(117, 87, 232, 0.18);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(66, 50, 134, 0.12);
}

.aoef-search-box__icon {
  position: relative;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  margin: 0 7px 0 14px;
  border: 2px solid #9694a6;
  border-radius: 50%;
}

.aoef-search-box__icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -5px;
  bottom: -3px;
  transform: rotate(45deg);
  background: #9694a6;
}

.aoef-search-box__form input {
  min-width: 0;
  flex: 1;
  padding: 12px 10px;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #1B1A2A;
  font: inherit;
}

.aoef-search-box__form button {
  min-width: 105px;
  padding: 12px 22px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #7557e8, #5038bd);
  box-shadow: 0 8px 18px rgba(117, 87, 232, 0.3);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.aoef-search-box__form button:hover {
  transform: translateY(-1px);
}

.aoef-search-box__character {
  position: absolute;
  right: 2px;
  bottom: 2px;
  z-index: 1;
  display: block;
  width: clamp(230px, 31vw, 390px);
  max-width: 36%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 900px) {
  .aoef-search-box {
    padding-right: clamp(185px, 29vw, 245px);
  }
  .aoef-search-box__character {
    width: clamp(180px, 30vw, 250px);
    max-width: 34%;
  }
  .aoef-search-box__headline {
    font-size: clamp(24px, 4.5vw, 38px);
  }
}

@media (max-width: 600px) {
  .aoef-search-box {
    min-height: 370px;
    padding: 28px 18px 145px;
    border-radius: 22px;
  }

  .aoef-search-box__headline {
    font-size: clamp(24px, 8vw, 34px);
    letter-spacing: -.05em;
  }

  .aoef-search-box__lead {
    margin-bottom: 19px;
  }

  .aoef-search-box__form {
    padding: 5px;
  }

  .aoef-search-box__form button {
    min-width: 78px;
    padding-inline: 13px;
  }

  .aoef-search-box__character {
    right: 8px;
    bottom: 10px;
    width: clamp(130px, 47vw, 180px);
    max-width: 52%;
  }
}


/* v0.2.9: stronger article-end CTA for the redirect search box */
.aoef-search-box-wrap,
.aoef-search-box-wrap * {
  box-sizing: border-box;
}

.aoef-search-box-wrap {
  width: 100%;
  margin: 34px auto 24px;
  color: #1B1A2A;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.aoef-search-box-cta {
  margin: 0 0 22px;
  padding: 0 clamp(2px, 1vw, 10px);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.aoef-search-box-cta__title {
  margin: 0;
  color: #1B1A2A;
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -.025em;
}

.aoef-search-box-cta__title em {
  color: #7c3aed;
  font-style: normal;
}

.aoef-search-box-cta__lead {
  margin: 7px 0 0 !important;
  color: #555464;
  font-size: clamp(14px, 1.8vw, 17px);
  line-height: 1.75;
}

/* Keep only the actual tool card framed; the CTA above deliberately has no background or outline. */
.aoef-search-box-wrap > .aoef-search-box {
  margin: 0 auto;
}

.aoef-search-box__form button {
  min-width: 190px;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .aoef-search-box-cta {
    margin-bottom: 16px;
  }

  .aoef-search-box-cta__title {
    font-size: clamp(20px, 6.3vw, 27px);
  }

  .aoef-search-box__form button {
    min-width: 150px;
    font-size: 13px;
    padding-inline: 12px;
  }
}

@media (max-width: 470px) {
  .aoef-search-box__form {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .aoef-search-box__icon {
    margin-top: 13px;
  }

  .aoef-search-box__form input {
    width: calc(100% - 52px);
    flex: 1 1 calc(100% - 52px);
  }

  .aoef-search-box__form button {
    width: 100%;
    margin-top: 5px;
    min-width: 0;
  }
}

/* v0.3.0: shareable URL state uses existing UI; no visual changes required. */


/* v0.3.2: hide Luxeritas author line on the plugin homepage only. */
body.home .post-author,
body.home .author-info,
body.home .entry-author,
body.home .post-meta-author {
  display: none !important;
}


/* v0.3.4: compact article search button and one-line embedded headline */
.aoef-search-box-wrap .aoef-search-box__form button {
  min-width: 86px;
  padding: 12px 18px;
  flex: 0 0 auto;
}

.aoef-search-box-wrap .aoef-search-box__headline {
  font-size: clamp(22.5px, 3.6vw, 41.4px);
  white-space: nowrap;
}

@media (max-width: 900px) and (min-width: 601px) {
  .aoef-search-box-wrap .aoef-search-box__headline {
    font-size: clamp(21.5px, 4.05vw, 34.2px);
  }

  .aoef-search-box-wrap .aoef-search-box__form button {
    min-width: 82px;
    padding-inline: 16px;
  }
}

@media (max-width: 600px) {
  .aoef-search-box-wrap .aoef-search-box__headline {
    font-size: clamp(21.5px, 7.2vw, 30.6px);
    white-space: normal;
  }

  .aoef-search-box-wrap .aoef-search-box__form button {
    min-width: 74px;
    padding-inline: 12px;
  }
}

@media (max-width: 470px) {
  .aoef-search-box-wrap .aoef-search-box__form button {
    width: 100%;
    min-width: 0;
  }
}
