.memory-filters {
  margin: 0 0 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(196, 168, 100, 0.18);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  backdrop-filter: blur(6px);
}
.memory-filters__row { display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap; }
.memory-filters__row + .memory-filters__row {
  margin-top: 0.8rem; padding-top: 0.8rem;
  border-top: 1px solid rgba(196, 168, 100, 0.10);
}
.memory-filters__search {
  position: relative; flex: 1 1 320px; min-width: 200px;
  display: flex; align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(196, 168, 100, 0.25);
  border-radius: 10px; padding: 0 0.6rem;
  transition: border-color 0.2s;
}
.memory-filters__search:focus-within { border-color: rgba(196, 168, 100, 0.55); }
.memory-filters__icon { color: rgba(196, 168, 100, 0.7); font-size: 1.1rem; margin-right: 0.4rem; }
.memory-filters__input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #f0e9d6; font-size: 0.95rem; font-family: inherit; padding: 0.7rem 0;
}
.memory-filters__input::placeholder { color: rgba(240, 233, 214, 0.4); }
.memory-filters__clear {
  background: transparent; border: none;
  color: rgba(240, 233, 214, 0.55); cursor: pointer;
  font-size: 1.3rem; line-height: 1; padding: 0 0.3rem;
  display: flex; align-items: center;
}
.memory-filters__clear:hover { color: #c4a864; }
.memory-create-btn {
  background: linear-gradient(135deg, #c4a864 0%, #a08644 100%);
  color: #1a1410; border: none; border-radius: 10px;
  padding: 0.75rem 1.3rem; font-family: inherit; font-weight: 500; font-size: 0.93rem;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}
.memory-create-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(196, 168, 100, 0.3); }
.memory-create-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.memory-filters__group { display: flex; align-items: center; gap: 0.5rem; }
.memory-filters__label { color: rgba(240, 233, 214, 0.65); font-size: 0.85rem; letter-spacing: 0.02em; }
.memory-filters__year {
  width: 90px; background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(196, 168, 100, 0.22); border-radius: 8px;
  padding: 0.45rem 0.6rem; color: #f0e9d6; font-family: inherit; font-size: 0.9rem;
  outline: none; transition: border-color 0.2s;
}
.memory-filters__year:focus { border-color: rgba(196, 168, 100, 0.55); }
.memory-filters__year::placeholder { color: rgba(240, 233, 214, 0.35); }
.memory-filters__dash { color: rgba(240, 233, 214, 0.45); }
.memory-filters__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  color: rgba(240, 233, 214, 0.82);
  font-size: 0.9rem;
  user-select: none;
}
.memory-filters__checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(196, 168, 100, 0.35);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0;
  outline: none;
  flex-shrink: 0;
}
.memory-filters__checkbox input[type="checkbox"]:checked {
  background: #c4a864;
  border-color: #c4a864;
  box-shadow: 0 0 8px rgba(196, 168, 100, 0.35);
}
.memory-filters__checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #1a1410;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.memory-filters__checkbox input[type="checkbox"]:hover {
  border-color: rgba(196, 168, 100, 0.65);
  background: rgba(196, 168, 100, 0.08);
}
.memory-filters__checkbox input[type="checkbox"]:focus-visible {
  border-color: #c4a864;
  box-shadow: 0 0 0 2px rgba(196, 168, 100, 0.25);
}
.memory-filters__reset {
  margin-left: auto; background: transparent;
  border: 1px solid rgba(196, 168, 100, 0.3); color: rgba(240, 233, 214, 0.72);
  border-radius: 8px; padding: 0.45rem 0.95rem;
  font-family: inherit; font-size: 0.85rem; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.memory-filters__reset:hover { border-color: rgba(196, 168, 100, 0.6); color: #c4a864; }
@media (max-width: 640px) {
  .memory-filters__row { gap: 0.6rem; }
  .memory-filters__search { flex-basis: 100%; }
  .memory-create-btn { flex: 1; }
  .memory-filters__reset { margin-left: 0; }
}


/* Select для gender / visibility */
.memory-filters__select {
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(196, 168, 100, 0.22);
	border-radius: 8px;
	padding: 0.45rem 0.6rem;
	color: #f0e9d6;
	font-family: inherit;
	font-size: 0.9rem;
	cursor: pointer;
	outline: none;
	transition: border-color 0.2s;
}
.memory-filters__select:hover,
.memory-filters__select:focus {
	border-color: rgba(196, 168, 100, 0.55);
}
.memory-filters__select option {
	background: #1a1410;
	color: #f0e9d6;
}
