/* Search suggest */
.search__field {
  position: relative;
}

.search__field--suggest {
  flex: 1;
  min-width: 0;
}

.search__suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 40;
  background: rgba(24, 24, 27, 0.98);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.search__suggest-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.search__suggest-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.search__suggest-item img {
  width: 36px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
  background: #111;
}

.search__suggest-item strong {
  display: block;
  font-size: 0.9rem;
}

.search__suggest-item small {
  color: var(--muted);
  font-size: 0.75rem;
}

.search__suggest-more,
.search__suggest-empty {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--rose-strong);
  text-align: left;
  padding: 0.7rem 0.85rem;
  font: inherit;
  cursor: pointer;
}

.home__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: -0.6rem 0 1.6rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
}

.chip:hover {
  color: var(--text);
  border-color: rgba(204, 28, 57, 0.45);
}

/* Header tools + notifications — keep lean; layout lives in Header.css */
.header__tools {
  /* intentionally empty override stopper */
}

/* Calendar */
.calendar-page__section {
  margin-bottom: 2rem;
}

.calendar-page__section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.calendar-page__list {
  display: grid;
  gap: 0.65rem;
}

.calendar-page__row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.calendar-page__row img {
  width: 48px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
}

.calendar-page__row small {
  color: var(--muted);
}

/* Lists / History */
.lists-page__tabs,
.history-page__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.lists-page__tab {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font: inherit;
  cursor: pointer;
}

.lists-page__tab.is-on {
  color: var(--text);
  border-color: rgba(204, 28, 57, 0.5);
  background: rgba(204, 28, 57, 0.15);
}

.lists-page__grid,
.history-page__list {
  display: grid;
  gap: 0.7rem;
}

.lists-page__item,
.history-page__item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.lists-page__item img,
.history-page__item img {
  width: 56px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.lists-page__item a,
.history-page__item a {
  color: var(--text);
  text-decoration: none;
}

.lists-page__item button,
.history-page__item button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
}

/* Comments reactions / replies */
.comments__item.is-reply {
  margin-left: 2.2rem;
  border-left: 2px solid rgba(204, 28, 57, 0.25);
  padding-left: 0.75rem;
}

.comments__reacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.comments__react {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.comments__react.is-on {
  border-color: rgba(204, 28, 57, 0.5);
  color: var(--text);
  background: rgba(204, 28, 57, 0.12);
}

.comments__reply-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

/* Anime list controls */
.anime-page__list-controls {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.anime-page__notify-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Account notif prefs */
.account__notif label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.55rem 0;
  color: var(--text);
  font-size: 0.9rem;
}

.account__notif .hint {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

/* Admin dashboard */
.admin-dash {
  display: grid;
  gap: 1rem;
}

.admin-dash__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.admin-dash__card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
}

.admin-dash__card strong {
  display: block;
  font-size: 1.35rem;
  margin-top: 0.25rem;
}

.admin-dash__list {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.admin-dash__list a,
.admin-dash__list div {
  display: block;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: 0.86rem;
}

.mod-logs table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.mod-logs th,
.mod-logs td {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.4rem;
  text-align: left;
  vertical-align: top;
}

@media (max-width: 720px) {
  .comments__item.is-reply {
    margin-left: 0.85rem;
  }
}

.minimal-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.85rem 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.92);
  backdrop-filter: blur(12px) saturate(1.15);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.minimal-fab--float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 90;
}

.minimal-fab--footer {
  position: static;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.04);
}

.minimal-fab.is-on {
  color: var(--text);
  border-color: rgba(204, 28, 57, 0.45);
}

.minimal-fab__text {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.minimal-fab__switch {
  position: relative;
  flex-shrink: 0;
  width: 2.65rem;
  height: 1.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.minimal-fab.is-on .minimal-fab__switch {
  background: rgba(204, 28, 57, 0.35);
  border-color: rgba(204, 28, 57, 0.55);
}

.minimal-fab__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.45rem - 6px);
  height: calc(1.45rem - 6px);
  border-radius: 999px;
  background: #e4e4e7;
  transition: transform 0.2s ease, background 0.2s ease;
}

.minimal-fab.is-on .minimal-fab__knob {
  transform: translateX(1.2rem);
  background: var(--accent);
}

@media (max-width: 560px) {
  .minimal-fab--float {
    right: max(0.85rem, env(safe-area-inset-right, 0px));
    bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
    min-height: 2.85rem;
    padding: 0.65rem 0.9rem 0.65rem 1rem;
    gap: 0.75rem;
  }

  .minimal-fab--float .minimal-fab__text {
    font-size: 0.88rem;
  }

  .minimal-fab--float .minimal-fab__switch {
    width: 2.9rem;
    height: 1.6rem;
  }

  .minimal-fab--float .minimal-fab__knob {
    width: calc(1.6rem - 6px);
    height: calc(1.6rem - 6px);
  }

  .minimal-fab--float.is-on .minimal-fab__knob {
    transform: translateX(1.3rem);
  }
}
