/* =========================================================
   Fichier : animes.css
   Version : v1.2.2
   Date    : 2026-08-04
   Description : Styles de la page Animés ADE
   Auteur  : L'Antre des Enfers - Projet Web
   ========================================================= */

.animes-page #bg {
  background-image:
    linear-gradient(120deg, rgba(0, 139, 139, .72), rgba(0, 0, 0, .2) 54%, rgba(245, 135, 39, .42)),
    url("/images/ade-fond-2.png");
  opacity: 1;
  filter: blur(2px);
}

.animes-main {
  min-height: 100vh;
  padding: 110px 20px 120px;
}

.animes-hero,
.animes-panel {
  width: min(var(--container-w), 94vw);
  margin: 0 auto;
}

.animes-hero {
  padding: 34px 0 18px;
}

.animes-hero__inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
}

.animes-hero__copy {
  text-align: left;
}

.animes-hero h1 {
  font-size: 1.65rem;
  margin-bottom: 10px;
}

.animes-hero p {
  color: #f2f6ff;
  margin: 0;
  max-width: 760px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .85);
}

.animes-panel {
  background: rgba(0, 0, 0, .54);
  border: 1px solid rgba(0, 178, 255, .3);
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(0, 178, 255, .22);
  padding: 22px;
  backdrop-filter: blur(10px);
}

.animes-toolbar,
.anime-form-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, .42fr) minmax(170px, .4fr) minmax(150px, .32fr);
  gap: 16px;
  align-items: end;
}

.anime-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.anime-form-grid--actions {
  grid-template-columns: minmax(0, 1fr) auto;
}

.anime-form-grid--title {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.anime-form-grid--title #anime-ai-button {
  align-self: start;
  min-height: 49px;
  margin-top: 27px;
  white-space: nowrap;
}

.animes-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
  text-align: left;
}

.animes-field label {
  color: var(--accent1);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.animes-label {
  color: var(--accent1);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.animes-label-help {
  color: rgba(247, 251, 255, .86);
  font-family: 'Poppins', sans-serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.animes-field input,
.animes-field textarea,
.animes-field select {
  width: 100%;
  border: 1px solid rgba(0, 230, 184, .55);
  border-radius: 10px;
  background: rgba(0, 0, 0, .68);
  color: #f7fbff;
  font: 400 1rem 'Poppins', sans-serif;
  padding: 11px 13px;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.animes-field input::placeholder,
.animes-field textarea::placeholder {
  color: rgba(247, 251, 255, .72);
  opacity: 1;
}

.animes-field select option {
  background: #071016;
  color: #f7fbff;
}

.animes-field textarea {
  resize: vertical;
  min-height: 130px;
}

.anime-genre-widget #anime-genre-input {
  color: #fff !important;
  caret-color: #fff;
}

.animes-field input:focus,
.animes-field textarea:focus,
.animes-field select:focus,
.genre-tag:focus,
.anime-genre-filter__toggle:focus,
.anime-version-filter__toggle:focus,
.anime-genre-filter__option input:focus,
.anime-version-filter__option input:focus,
.anime-pill--button:focus {
  border-color: var(--accent3);
  box-shadow: 0 0 0 3px rgba(245, 135, 39, .25), 0 0 14px rgba(0, 178, 255, .2);
}

.anime-genre-filter,
.anime-version-filter {
  position: relative;
}

.anime-genre-filter__toggle,
.anime-version-filter__toggle {
  position: relative;
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(0, 230, 184, .55);
  border-radius: 10px;
  background: rgba(0, 0, 0, .68);
  color: #f7fbff;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 11px 38px 11px 13px;
  text-align: left;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.anime-genre-filter__toggle::after,
.anime-version-filter__toggle::after {
  content: "▾";
  position: absolute;
  right: 14px;
}

.anime-genre-filter__toggle:focus,
.anime-genre-filter[data-open="true"] .anime-genre-filter__toggle,
.anime-version-filter__toggle:focus,
.anime-version-filter[data-open="true"] .anime-version-filter__toggle {
  border-color: var(--accent3);
  box-shadow: 0 0 0 3px rgba(245, 135, 39, .25), 0 0 14px rgba(0, 178, 255, .2);
}

.anime-genre-filter__panel,
.anime-version-filter__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 10;
  border: 1px solid var(--accent1);
  border-radius: 10px;
  background: rgba(0, 0, 0, .96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .42), 0 0 18px rgba(0, 178, 255, .18);
  overflow: hidden;
}

.anime-genre-filter__panel.hidden,
.anime-version-filter__panel.hidden {
  display: none;
}

.anime-genre-filter__options,
.anime-version-filter__options {
  max-height: 210px;
  overflow: auto;
  padding: 8px;
}

.anime-genre-filter__option,
.anime-version-filter__option {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: .95rem;
  padding: 8px 9px;
}

.anime-genre-filter__option:hover,
.anime-version-filter__option:hover {
  background: linear-gradient(90deg, rgba(0, 178, 255, .32), rgba(245, 135, 39, .24));
}

.anime-genre-filter__option input,
.anime-version-filter__option input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent2);
}

.anime-genre-filter__actions,
.anime-version-filter__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid rgba(0, 230, 184, .24);
  padding: 8px;
}

.anime-genre-filter__actions .btn,
.anime-version-filter__actions .btn {
  padding: 7px 11px;
}

.animes-status {
  min-height: 28px;
  margin: 18px 0 12px;
  color: var(--gold);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
}

.animes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.anime-card {
  display: block;
  position: relative;
  min-height: 0;
  padding: 18px;
  border: 1px solid rgba(0, 178, 255, .32);
  border-radius: 12px;
  background: rgba(0, 0, 0, .45);
  box-shadow: inset 0 0 0 1px rgba(255, 195, 0, .08);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.anime-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.anime-card__edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(0, 230, 184, .5);
  border-radius: 999px;
  background: rgba(0, 0, 0, .42);
  color: #fff;
  cursor: pointer;
  font-size: .82rem;
  line-height: 1;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.anime-card__edit-button:hover,
.anime-card__edit-button:focus-visible {
  border-color: var(--gold);
  background: rgba(245, 135, 39, .3);
  transform: scale(1.06);
  outline: none;
}

.anime-card__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, .28fr);
  gap: 16px;
  align-items: stretch;
}

.anime-card--no-cover .anime-card__content {
  grid-template-columns: minmax(0, 1fr) minmax(190px, .24fr);
}

.anime-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.anime-card__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.anime-card__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.anime-card__cover {
  width: min(140px, 100%);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(0, 230, 184, .42);
  border-radius: 10px;
  background: rgba(0, 0, 0, .36);
  box-shadow: 0 0 16px rgba(0, 178, 255, .18);
  cursor: zoom-in;
}

.anime-card:hover,
.anime-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent3);
  box-shadow: 0 0 18px rgba(245, 135, 39, .24);
  outline: none;
}

.anime-card h2 {
  color: var(--accent1);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  margin: 0;
}

.anime-card__versions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.anime-version-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(0, 230, 184, .45);
  border-radius: 999px;
  background: rgba(0, 0, 0, .42);
  color: #fff;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.1;
  padding: 4px 8px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.anime-version-flag:hover,
.anime-version-flag[aria-pressed="true"] {
  border-color: var(--accent3);
  background: rgba(245, 135, 39, .24);
}

.anime-card p {
  margin: 0;
  max-width: none;
  color: rgba(247, 251, 255, .9);
  font-size: .95rem;
  line-height: 1.55;
}

.anime-card__opinion {
  border-left: 3px solid var(--accent3);
  background: rgba(245, 135, 39, .1);
  border-radius: 8px;
  padding: 10px 12px;
}

.anime-card__opinion-title {
  display: block;
  color: var(--gold);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.anime-card__opinion p {
  color: rgba(247, 251, 255, .9);
  font-size: .9rem;
}

.anime-card__genres,
.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.anime-pill,
.genre-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(0, 230, 184, .55);
  border-radius: 999px;
  background: rgba(0, 230, 184, .22);
  color: #f7fbff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  padding: 4px 10px;
}

.anime-pill--button {
  cursor: pointer;
  font-size: .95rem;
  line-height: 1.2;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.anime-pill--button:hover,
.anime-pill--button[aria-pressed="true"] {
  border-color: var(--accent3);
  background: rgba(245, 135, 39, .28);
  color: #fff;
}

.genre-tag button {
  border: 0;
  background: transparent;
  color: var(--accent3);
  cursor: pointer;
  font-size: 1rem;
}

.anime-card__link {
  align-self: stretch;
  justify-content: center;
  margin-top: 2px;
  color: #071016;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  padding: 8px 14px;
  text-decoration: none;
  text-transform: uppercase;
}

.anime-card__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  justify-content: flex-end;
}

.anime-card__score {
  color: var(--gold);
  font-family: 'Orbitron', sans-serif;
  font-size: .98rem;
}

.anime-card__votes {
  color: rgba(230, 233, 255, .72);
  font-size: .85rem;
}

.anime-card__rating-actions {
  display: flex;
  gap: 7px;
}

.anime-vote-button {
  border: 1px solid rgba(0, 230, 184, .46);
  border-radius: 999px;
  background: rgba(0, 0, 0, .42);
  color: #fff;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  padding: 5px 10px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.anime-vote-button:hover,
.anime-vote-button[aria-pressed="true"] {
  border-color: var(--accent3);
  background: rgba(245, 135, 39, .24);
}

.anime-card__date {
  color: rgba(230, 233, 255, .68);
  font-size: .82rem;
}

.anime-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(8px);
  z-index: 10000;
}

.anime-modal.hidden {
  display: none;
}

.anime-modal__dialog {
  width: min(780px, 96vw);
  max-height: 88vh;
  overflow: auto;
  position: relative;
  border: 1px solid rgba(0, 178, 255, .35);
  border-radius: 14px;
  background: rgba(9, 14, 20, .96);
  box-shadow: 0 0 28px rgba(0, 178, 255, .45);
  padding: 26px;
}

.anime-modal__dialog h2 {
  margin-bottom: 8px;
  font-family: 'Orbitron', sans-serif;
  color: var(--accent1);
}

.anime-detail__dialog {
  width: min(1060px, 96vw);
}

.anime-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .32fr);
  gap: 22px;
  align-items: stretch;
}

.anime-detail__main {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
}

.anime-detail__main h3 {
  color: var(--accent1);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.18rem;
  margin: 0;
}

.anime-detail__description {
  color: rgba(247, 251, 255, .92);
  line-height: 1.65;
}

.anime-detail__aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}

.anime-detail__cover {
  width: min(220px, 100%);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(0, 230, 184, .5);
  border-radius: 10px;
  background: rgba(0, 0, 0, .36);
  box-shadow: 0 0 24px rgba(0, 178, 255, .22);
  cursor: zoom-in;
}

.anime-cover-modal {
  z-index: 10020;
}

.anime-cover__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(720px, 96vw);
  max-height: 92vh;
  padding: 26px;
  border: 1px solid rgba(0, 178, 255, .35);
  border-radius: 14px;
  background: rgba(9, 14, 20, .97);
  box-shadow: 0 0 34px rgba(0, 178, 255, .5);
}

.anime-cover__dialog h2 {
  align-self: stretch;
  color: var(--accent1);
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  margin: 0 42px 16px 0;
}

.anime-cover__image {
  display: block;
  width: min(520px, 86vw);
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid rgba(0, 230, 184, .42);
  border-radius: 12px;
  background: rgba(0, 0, 0, .42);
  box-shadow: 0 0 28px rgba(245, 135, 39, .18);
}

.anime-modal__dialog p {
  margin: 0 0 18px;
  max-width: none;
  font-size: .95rem;
}

#anime-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#anime-edit-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.anime-edit-dialog {
  width: min(1080px, 96vw);
}

.anime-edit-admin-note {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: -4px 0 12px;
  border-left: 3px solid var(--accent3);
  color: var(--gold);
  font-family: 'Rajdhani', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .5px;
  padding-left: 10px;
  text-transform: uppercase;
}

.anime-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .32fr);
  gap: 20px;
  align-items: stretch;
}

.anime-edit-fields,
.anime-edit-cover-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.anime-edit-cover-panel {
  gap: 10px;
}

.anime-add-cover-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.anime-edit-cover-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 330px;
  border: 1px dashed rgba(0, 230, 184, .62);
  border-radius: 12px;
  background: rgba(0, 0, 0, .44);
  color: rgba(247, 251, 255, .78);
  cursor: pointer;
  overflow: hidden;
  padding: 10px;
  text-align: center;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.anime-edit-cover-drop[data-drag="true"],
.anime-edit-cover-drop:hover {
  border-color: var(--accent3);
  background: rgba(245, 135, 39, .1);
  box-shadow: 0 0 16px rgba(245, 135, 39, .18);
}

.anime-edit-cover-drop img {
  display: none;
  width: min(230px, 100%);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(0, 230, 184, .45);
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(0, 178, 255, .2);
}

.anime-edit-cover-drop[data-has-cover="true"] img {
  display: block;
}

.anime-edit-cover-drop[data-has-cover="true"] span {
  display: none;
}

#anime-edit-cover-input {
  display: none;
}

#anime-add-cover-input {
  display: none;
}

.anime-add-cover-drop {
  min-height: 250px;
}

.anime-add-cover-drop img {
  width: min(170px, 100%);
}

.anime-add-cover-clear.hidden {
  display: none;
}

.anime-edit-remove-cover {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: .88rem;
}

.anime-edit-remove-cover input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent3);
}

.anime-version-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.anime-version-fieldset legend {
  color: var(--accent1);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .6px;
  margin-bottom: 7px;
  padding: 0;
  text-transform: uppercase;
}

.anime-version-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.anime-version-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(0, 230, 184, .55);
  border-radius: 10px;
  background: rgba(0, 0, 0, .54);
  color: #fff;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 12px;
}

.anime-version-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent2);
}

.genre-suggestions {
  position: static;
  width: 100%;
  margin-top: -7px;
  max-height: 170px;
  overflow: auto;
  list-style: none;
  border: 1px solid var(--accent1);
  border-radius: 10px;
  background: rgba(0, 0, 0, .94);
  z-index: 2;
}

.genre-suggestions.hidden {
  display: none;
}

.genre-suggestions li {
  color: #fff;
  padding: 9px 12px;
  cursor: pointer;
}

.genre-suggestions li[aria-selected="true"],
.genre-suggestions li:hover {
  background: linear-gradient(90deg, rgba(0, 178, 255, .38), rgba(245, 135, 39, .32));
}

.field-error,
.anime-form-message {
  min-height: 18px;
  color: #ffb3a6;
  font-size: .86rem;
}

.anime-form-message.success {
  color: var(--accent2);
}

.anime-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

button[disabled] {
  cursor: wait;
  opacity: .62;
}

body.light .animes-panel,
body.light .anime-card,
body.light .anime-modal__dialog {
  background: rgba(255, 255, 255, .9);
  color: #111;
}

body.light .animes-field input,
body.light .animes-field textarea,
body.light .animes-field select,
body.light .anime-genre-filter__toggle,
body.light .anime-version-filter__toggle {
  background: rgba(255, 255, 255, .85);
  color: #111;
}

body.light .animes-field input::placeholder,
body.light .animes-field textarea::placeholder {
  color: rgba(0, 0, 0, .58);
}

.anime-title-suggestions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: -1px;
  padding: 9px 11px;
  border: 1px solid rgba(245, 135, 39, .5);
  border-radius: 9px;
  background: rgba(26, 13, 4, .88);
  color: rgba(255, 224, 194, .96);
  font-size: .82rem;
  line-height: 1.35;
  pointer-events: none;
}

.anime-title-suggestions.hidden {
  display: none;
}

.anime-title-suggestions__heading {
  color: var(--accent3);
  font-weight: 600;
}

.anime-title-suggestions__item {
  color: #f7fbff;
}

.anime-genre-widget #anime-genre-input {
  color: #fff !important;
  caret-color: #fff;
}

.animes-field input:focus,
.animes-field textarea:focus,
.animes-field select:focus,
.genre-tag:focus,
.anime-genre-filter__toggle:focus,
.anime-version-filter__toggle:focus,
.anime-genre-filter__option input:focus,
.anime-version-filter__option input:focus,
.anime-pill--button:focus {
  border-color: var(--accent3);
  box-shadow: 0 0 0 3px rgba(245, 135, 39, .25), 0 0 14px rgba(0, 178, 255, .2);
}

.anime-genre-filter,
.anime-version-filter {
  position: relative;
}

.anime-genre-filter__toggle,
.anime-version-filter__toggle {
  position: relative;
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(0, 230, 184, .55);
  border-radius: 10px;
  background: rgba(0, 0, 0, .68);
  color: #f7fbff;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 11px 38px 11px 13px;
  text-align: left;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.anime-genre-filter__toggle::after,
.anime-version-filter__toggle::after {
  content: "▾";
  position: absolute;
  right: 14px;
}

.anime-genre-filter__toggle:focus,
.anime-genre-filter[data-open="true"] .anime-genre-filter__toggle,
.anime-version-filter__toggle:focus,
.anime-version-filter[data-open="true"] .anime-version-filter__toggle {
  border-color: var(--accent3);
  box-shadow: 0 0 0 3px rgba(245, 135, 39, .25), 0 0 14px rgba(0, 178, 255, .2);
}

.anime-genre-filter__panel,
.anime-version-filter__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 10;
  border: 1px solid var(--accent1);
  border-radius: 10px;
  background: rgba(0, 0, 0, .96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .42), 0 0 18px rgba(0, 178, 255, .18);
  overflow: hidden;
}

.anime-genre-filter__panel.hidden,
.anime-version-filter__panel.hidden {
  display: none;
}

.anime-genre-filter__options,
.anime-version-filter__options {
  max-height: 210px;
  overflow: auto;
  padding: 8px;
}

.anime-genre-filter__option,
.anime-version-filter__option {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: .95rem;
  padding: 8px 9px;
}

.anime-genre-filter__option:hover,
.anime-version-filter__option:hover {
  background: linear-gradient(90deg, rgba(0, 178, 255, .32), rgba(245, 135, 39, .24));
}

.anime-genre-filter__option input,
.anime-version-filter__option input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent2);
}

.anime-genre-filter__actions,
.anime-version-filter__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid rgba(0, 230, 184, .24);
  padding: 8px;
}

.anime-genre-filter__actions .btn,
.anime-version-filter__actions .btn {
  padding: 7px 11px;
}

.animes-status {
  min-height: 28px;
  margin: 18px 0 12px;
  color: var(--gold);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
}

.animes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.anime-card {
  display: block;
  position: relative;
  min-height: 0;
  padding: 18px;
  border: 1px solid rgba(0, 178, 255, .32);
  border-radius: 12px;
  background: rgba(0, 0, 0, .45);
  box-shadow: inset 0 0 0 1px rgba(255, 195, 0, .08);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.anime-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.anime-card__edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(0, 230, 184, .5);
  border-radius: 999px;
  background: rgba(0, 0, 0, .42);
  color: #fff;
  cursor: pointer;
  font-size: .82rem;
  line-height: 1;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.anime-card__edit-button:hover,
.anime-card__edit-button:focus-visible {
  border-color: var(--gold);
  background: rgba(245, 135, 39, .3);
  transform: scale(1.06);
  outline: none;
}

.anime-card__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, .28fr);
  gap: 16px;
  align-items: stretch;
}

.anime-card--no-cover .anime-card__content {
  grid-template-columns: minmax(0, 1fr) minmax(190px, .24fr);
}

.anime-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.anime-card__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.anime-card__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.anime-card__cover {
  width: min(140px, 100%);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(0, 230, 184, .42);
  border-radius: 10px;
  background: rgba(0, 0, 0, .36);
  box-shadow: 0 0 16px rgba(0, 178, 255, .18);
  cursor: zoom-in;
}

.anime-card:hover,
.anime-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent3);
  box-shadow: 0 0 18px rgba(245, 135, 39, .24);
  outline: none;
}

.anime-card h2 {
  color: var(--accent1);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  margin: 0;
}

.anime-card__versions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.anime-version-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(0, 230, 184, .45);
  border-radius: 999px;
  background: rgba(0, 0, 0, .42);
  color: #fff;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.1;
  padding: 4px 8px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.anime-version-flag:hover,
.anime-version-flag[aria-pressed="true"] {
  border-color: var(--accent3);
  background: rgba(245, 135, 39, .24);
}

.anime-card p {
  margin: 0;
  max-width: none;
  color: rgba(247, 251, 255, .9);
  font-size: .95rem;
  line-height: 1.55;
}

.anime-card__opinion {
  border-left: 3px solid var(--accent3);
  background: rgba(245, 135, 39, .1);
  border-radius: 8px;
  padding: 10px 12px;
}

.anime-card__opinion-title {
  display: block;
  color: var(--gold);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.anime-card__opinion p {
  color: rgba(247, 251, 255, .9);
  font-size: .9rem;
}

.anime-card__genres,
.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.anime-pill,
.genre-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(0, 230, 184, .55);
  border-radius: 999px;
  background: rgba(0, 230, 184, .22);
  color: #f7fbff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  padding: 4px 10px;
}

.anime-pill--button {
  cursor: pointer;
  font-size: .95rem;
  line-height: 1.2;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.anime-pill--button:hover,
.anime-pill--button[aria-pressed="true"] {
  border-color: var(--accent3);
  background: rgba(245, 135, 39, .28);
  color: #fff;
}

.genre-tag button {
  border: 0;
  background: transparent;
  color: var(--accent3);
  cursor: pointer;
  font-size: 1rem;
}

.anime-card__link {
  align-self: stretch;
  justify-content: center;
  margin-top: 2px;
  color: #071016;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  padding: 8px 14px;
  text-decoration: none;
  text-transform: uppercase;
}

.anime-card__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  justify-content: flex-end;
}

.anime-card__score {
  color: var(--gold);
  font-family: 'Orbitron', sans-serif;
  font-size: .98rem;
}

.anime-card__votes {
  color: rgba(230, 233, 255, .72);
  font-size: .85rem;
}

.anime-card__rating-actions {
  display: flex;
  gap: 7px;
}

.anime-vote-button {
  border: 1px solid rgba(0, 230, 184, .46);
  border-radius: 999px;
  background: rgba(0, 0, 0, .42);
  color: #fff;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  padding: 5px 10px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.anime-vote-button:hover,
.anime-vote-button[aria-pressed="true"] {
  border-color: var(--accent3);
  background: rgba(245, 135, 39, .24);
}

.anime-card__date {
  color: rgba(230, 233, 255, .68);
  font-size: .82rem;
}

.anime-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(8px);
  z-index: 10000;
}

.anime-modal.hidden {
  display: none;
}

.anime-modal__dialog {
  width: min(780px, 96vw);
  max-height: 88vh;
  overflow: auto;
  position: relative;
  border: 1px solid rgba(0, 178, 255, .35);
  border-radius: 14px;
  background: rgba(9, 14, 20, .96);
  box-shadow: 0 0 28px rgba(0, 178, 255, .45);
  padding: 26px;
}

.anime-modal__dialog h2 {
  margin-bottom: 8px;
  font-family: 'Orbitron', sans-serif;
  color: var(--accent1);
}

.anime-detail__dialog {
  width: min(1060px, 96vw);
}

.anime-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .32fr);
  gap: 22px;
  align-items: stretch;
}

.anime-detail__main {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
}

.anime-detail__main h3 {
  color: var(--accent1);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.18rem;
  margin: 0;
}

.anime-detail__description {
  color: rgba(247, 251, 255, .92);
  line-height: 1.65;
}

.anime-detail__aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}

.anime-detail__cover {
  width: min(220px, 100%);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(0, 230, 184, .5);
  border-radius: 10px;
  background: rgba(0, 0, 0, .36);
  box-shadow: 0 0 24px rgba(0, 178, 255, .22);
  cursor: zoom-in;
}

.anime-cover-modal {
  z-index: 10020;
}

.anime-cover__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(720px, 96vw);
  max-height: 92vh;
  padding: 26px;
  border: 1px solid rgba(0, 178, 255, .35);
  border-radius: 14px;
  background: rgba(9, 14, 20, .97);
  box-shadow: 0 0 34px rgba(0, 178, 255, .5);
}

.anime-cover__dialog h2 {
  align-self: stretch;
  color: var(--accent1);
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  margin: 0 42px 16px 0;
}

.anime-cover__image {
  display: block;
  width: min(520px, 86vw);
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid rgba(0, 230, 184, .42);
  border-radius: 12px;
  background: rgba(0, 0, 0, .42);
  box-shadow: 0 0 28px rgba(245, 135, 39, .18);
}

.anime-modal__dialog p {
  margin: 0 0 18px;
  max-width: none;
  font-size: .95rem;
}

#anime-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#anime-edit-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.anime-edit-dialog {
  width: min(1080px, 96vw);
}

.anime-edit-admin-note {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: -4px 0 12px;
  border-left: 3px solid var(--accent3);
  color: var(--gold);
  font-family: 'Rajdhani', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .5px;
  padding-left: 10px;
  text-transform: uppercase;
}

.anime-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .32fr);
  gap: 20px;
  align-items: stretch;
}

.anime-edit-fields,
.anime-edit-cover-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.anime-edit-cover-panel {
  gap: 10px;
}

.anime-add-cover-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.anime-edit-cover-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 330px;
  border: 1px dashed rgba(0, 230, 184, .62);
  border-radius: 12px;
  background: rgba(0, 0, 0, .44);
  color: rgba(247, 251, 255, .78);
  cursor: pointer;
  overflow: hidden;
  padding: 10px;
  text-align: center;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.anime-edit-cover-drop[data-drag="true"],
.anime-edit-cover-drop:hover {
  border-color: var(--accent3);
  background: rgba(245, 135, 39, .1);
  box-shadow: 0 0 16px rgba(245, 135, 39, .18);
}

.anime-edit-cover-drop img {
  display: none;
  width: min(230px, 100%);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(0, 230, 184, .45);
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(0, 178, 255, .2);
}

.anime-edit-cover-drop[data-has-cover="true"] img {
  display: block;
}

.anime-edit-cover-drop[data-has-cover="true"] span {
  display: none;
}

#anime-edit-cover-input {
  display: none;
}

#anime-add-cover-input {
  display: none;
}

.anime-add-cover-drop {
  min-height: 250px;
}

.anime-add-cover-drop img {
  width: min(170px, 100%);
}

.anime-add-cover-clear.hidden {
  display: none;
}

.anime-edit-remove-cover {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: .88rem;
}

.anime-edit-remove-cover input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent3);
}

.anime-version-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.anime-version-fieldset legend {
  color: var(--accent1);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .6px;
  margin-bottom: 7px;
  padding: 0;
  text-transform: uppercase;
}

.anime-version-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.anime-version-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(0, 230, 184, .55);
  border-radius: 10px;
  background: rgba(0, 0, 0, .54);
  color: #fff;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 12px;
}

.anime-version-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent2);
}

.genre-suggestions {
  position: static;
  width: 100%;
  margin-top: -7px;
  max-height: 170px;
  overflow: auto;
  list-style: none;
  border: 1px solid var(--accent1);
  border-radius: 10px;
  background: rgba(0, 0, 0, .94);
  z-index: 2;
}

.genre-suggestions.hidden {
  display: none;
}

.genre-suggestions li {
  color: #fff;
  padding: 9px 12px;
  cursor: pointer;
}

.genre-suggestions li[aria-selected="true"],
.genre-suggestions li:hover {
  background: linear-gradient(90deg, rgba(0, 178, 255, .38), rgba(245, 135, 39, .32));
}

.field-error,
.anime-form-message {
  min-height: 18px;
  color: #ffb3a6;
  font-size: .86rem;
}

.anime-form-message.success {
  color: var(--accent2);
}

.anime-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

button[disabled] {
  cursor: wait;
  opacity: .62;
}

body.light .animes-panel,
body.light .anime-card,
body.light .anime-modal__dialog {
  background: rgba(255, 255, 255, .9);
  color: #111;
}

body.light .animes-field input,
body.light .animes-field textarea,
body.light .animes-field select,
body.light .anime-genre-filter__toggle,
body.light .anime-version-filter__toggle {
  background: rgba(255, 255, 255, .85);
  color: #111;
}

body.light .animes-field input::placeholder,
body.light .animes-field textarea::placeholder {
  color: rgba(0, 0, 0, .58);
}

body.light .anime-title-suggestions {
  background: rgba(255, 248, 238, .96);
  color: #5d3518;
}

body.light .anime-title-suggestions__item {
  color: #24170d;
}

body.light .anime-pill,
body.light .genre-tag {
  color: #111;
  background: rgba(0, 230, 184, .2);
}

body.light .anime-pill--button[aria-pressed="true"],
body.light .anime-pill--button:hover {
  color: #111;
}

body.light .anime-card__date {
  color: rgba(0, 0, 0, .58);
}

body.light .anime-card p {
  color: rgba(17, 17, 17, .82);
}

body.light .anime-card__opinion {
  background: rgba(245, 135, 39, .14);
}

body.light .anime-card__opinion p,
body.light .anime-card__votes {
  color: rgba(17, 17, 17, .72);
}

body.light .anime-vote-button {
  background: rgba(255, 255, 255, .72);
  color: #111;
}

body.light .anime-version-flag,
body.light .anime-version-check {
  background: rgba(255, 255, 255, .72);
  color: #111;
}

body.light .anime-genre-widget #anime-genre-input {
  color: #111 !important;
  caret-color: #111;
}

body.light .genre-suggestions li {
  color: #fff;
}

@media (max-width: 850px) {
  .animes-main {
    padding: 92px 14px 150px;
  }

  .animes-hero__inner,
  .anime-modal__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .animes-toolbar,
  .anime-form-grid,
  .anime-form-grid--actions {
    grid-template-columns: 1fr;
  }

  .anime-form-grid--title #anime-ai-button {
    margin-top: 0;
  }

  .animes-panel,
  .anime-modal__dialog {
    padding: 16px;
  }

  .anime-card__content {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .anime-card--no-cover .anime-card__content {
    grid-template-columns: 1fr;
  }

  .anime-card__cover {
    width: min(150px, 46vw);
  }

  .anime-card__rating {
    justify-content: flex-start;
  }

  .anime-card__actions {
    align-items: flex-start;
  }

  .anime-detail__layout {
    grid-template-columns: 1fr;
  }

  .anime-edit-layout {
    grid-template-columns: 1fr;
  }

  .anime-edit-cover-drop {
    min-height: 260px;
  }

  .anime-detail__aside {
    align-items: flex-start;
  }

  .anime-detail__cover {
    width: min(210px, 54vw);
  }

  .anime-cover__dialog {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
