/* Uses the shared .page frame and header bar from pages.css; the copy and the form sit side by side. */
.anime-request-page .page-head__meta {
  margin-bottom: clamp(40px, 6vw, 64px);
}

.anime-request-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
  gap: clamp(36px, 8vw, 110px);
}

.anime-request-title {
  margin: 16px 0 0;
}

.anime-request-title .serif {
  font-weight: 400;
}

.anime-request-lede {
  max-width: 420px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.75;
}

.anime-request-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 420px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.anime-request-note i {
  margin-top: 3px;
  color: var(--accent);
}

.anime-request-note p {
  margin: 0;
}

.anime-request-card {
  padding: clamp(24px, 5vw, 42px);
}

.anime-request-field {
  display: grid;
  gap: 9px;
  margin-bottom: 22px;
}

.anime-request-field label {
  font-size: 0.88rem;
  font-weight: 600;
}

.anime-request-field label > span {
  color: var(--muted);
  font-weight: 400;
}

.anime-request-field label > span:first-child:not(.muted) {
  color: var(--accent);
}

.anime-search-hint,
.anime-selected-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.anime-search-results {
  display: grid;
  max-height: 380px;
  gap: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.anime-search-message {
  margin: 4px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.anime-search-message.is-error {
  color: #e87979;
}

.anime-result {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}

.anime-result-image {
  width: 48px;
  height: 64px;
  border-radius: 6px;
  background: var(--surface);
  object-fit: cover;
}

.anime-result-poster {
  display: grid;
  width: 48px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface);
}

.anime-result-poster .anime-result-image {
  width: 100%;
  height: 100%;
}

.anime-result-details {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.anime-result-details strong {
  overflow: hidden;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anime-result-details span {
  color: var(--muted);
  font-size: 0.75rem;
}

.anime-result-details .anime-result-synopsis {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.73rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.anime-result-add {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
}

.anime-result-add:hover:not(:disabled) {
  border-color: var(--accent);
}

.anime-result-add:disabled {
  cursor: default;
  opacity: 0.65;
}

.anime-result-add.is-selected {
  color: var(--accent);
}

.anime-selected-label {
  font-size: 0.88rem;
  font-weight: 600;
}

.anime-selected-label .muted {
  font-weight: 400;
}

.anime-selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.anime-selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 8px 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.8rem;
}

.anime-selected-chip button {
  display: grid;
  width: 22px;
  height: 22px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.anime-selected-chip button:hover {
  color: var(--text);
  background: var(--surface);
}

.anime-request-field input,
.anime-request-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  color: var(--text);
  background: var(--surface-2);
  font: inherit;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.anime-request-field textarea {
  min-height: 108px;
  resize: vertical;
}

.anime-request-field input::placeholder,
.anime-request-field textarea::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.anime-request-field input:focus,
.anime-request-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.anime-request-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.anime-request-turnstile {
  margin-bottom: 14px;
}

.anime-request-status {
  min-height: 1.5em;
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.anime-request-status[data-state="success"] {
  color: var(--accent);
}

.anime-request-status[data-state="error"] {
  color: #e87979;
}

.anime-request-submit {
  width: 100%;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.anime-request-submit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.anime-request-privacy {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 760px) {
  .anime-request-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .anime-request-field input,
  .anime-request-field textarea {
    transition: none;
  }
}
