:root {
  --bg: #080d14;
  --bg2: #101826;
  --bg3: #182437;
  --border: #273445;
  --border-hover: #66a3ff;
  --text: #edf3fb;
  --text-muted: #a5b2c6;
  --text-dim: #7d8ba3;
  --accent: #66a3ff;
  --accent2: #ff8a65;
  --accent3: #8bb8ff;
  --accent4: #66a3ff;
  --accent5: #ffa657;
  --tag-bg: #143044;
  --tag-text: #bcd7ff;
  --radius: 6px;
  --radius-lg: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(900px 360px at 8% -10%, rgba(102, 163, 255, 0.16), transparent 60%),
    radial-gradient(680px 320px at 100% 0, rgba(102, 163, 255, 0.13), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: 14px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.back-top-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: 0.18s ease;
  color: #fff;
  background: linear-gradient(135deg, #66a3ff, #3b82f6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.back-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top-btn:hover {
  transform: translateY(-3px);
}

/* HEADER */
header {
  background: rgba(16, 24, 38, 0.82);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;

  position: sticky;
  top: 0;

  z-index: 9999;
  isolation: isolate;

  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-icon {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, var(--accent), #0891b2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 6px 14px rgba(102, 163, 255, 0.3);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text); /* ou white pra testar */
  border-radius: 2px;
  transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.nav-link:hover {
  background: rgba(102, 163, 255, 0.1);
  border-color: rgba(102, 163, 255, 0.36);
  color: var(--text);
}
.nav-link.active {
  background: rgba(102, 163, 255, 0.14);
  border-color: rgba(102, 163, 255, 0.42);
  color: var(--text);
}

.nav-link--cta {
  border-color: rgba(102, 163, 255, 0.42);
  background: rgba(102, 163, 255, 0.14);
  color: var(--text);
}

.header-nav__form,
.drawer-menu__form {
  margin: 0;
}

.nav-link--btn {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #ffc2c2;
  cursor: pointer;
  font: inherit;
}

.nav-link--btn:hover {
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.45);
  color: #ffd6d6;
}

.header-user {
  position: relative;
}

.header-user__trigger {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(6, 12, 22, 0.8);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
}

.header-user__trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-user__trigger span {
  font-size: 13px;
  font-weight: 700;
}

.header-user__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 170px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(10, 16, 26, 0.98);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
  padding: 6px;
  display: none;
  z-index: 10020;
}

.header-user.is-open .header-user__menu {
  display: grid;
}

.header-user__link,
.header-user__logout {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  font: inherit;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
}

.header-user__link:hover,
.header-user__logout:hover {
  background: rgba(102, 163, 255, 0.12);
  color: var(--text);
}

.header-user__form {
  margin: 0;
  display: grid;
}

.header-badge {
  background: rgba(24, 36, 55, 0.9);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
}

/* drawer base */
.mobile-drawer {
  position: fixed;
  top: 56px;
  left: 0;
  width: auto;
  height: calc(100% - 56px);
  background: var(--bg2);
  z-index: 10000;

  transform: translateX(-100%);
  transition: transform 0.3s ease;

  overflow-y: auto;
}

/* ativo */
.mobile-drawer.active {
  transform: translateX(0);
}

/* overlay escuro */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);

  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 9998;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* separacao */
.drawer-menu {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.drawer-menu .nav-link {
  display: block;
  width: 100%;
  margin-bottom: 6px;
}

.drawer-menu .nav-link--btn {
  text-align: left;
}

.drawer-menu .nav-link:last-child {
  margin-bottom: 0;
}

.drawer-sidebar {
  padding: 16px;
}
.mobile-drawer {
  display: none;
  width: min(280px, 85vw);
}

.home-mobile-filters {
  display: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg2);
  margin-bottom: 14px;
  overflow: hidden;
}

.home-mobile-filters > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.home-mobile-filters > summary::-webkit-details-marker {
  display: none;
}

.home-mobile-filters[open] > summary {
  color: var(--text);
}

.home-mobile-sidebar {
  padding: 10px;
}

.home-mobile-sidebar .sidebar-section {
  margin-bottom: 10px;
}

.home-mobile-sidebar .sidebar-section:last-child {
  margin-bottom: 0;
}

/* MAIN LAYOUT */
.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  /* grid-template-columns: 240px 1fr; */
  gap: 24px;
}

@media (min-width: 1600px) {
  .header-inner,
  .container {
    max-width: 1520px;
  }
}

/* SIDEBAR */
.sidebar {
  display: none;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease;
}

.sidebar-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sidebar-title {
  background: var(--bg2);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
}

.filter-list {
  list-style: none;
  background: var(--bg2);
}

.filter-item {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.filter-item:last-child {
  border-bottom: none;
}
.filter-item:hover {
  background: var(--bg3);
}

.filter-btn {
  width: 100%;
  padding: 8px 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: "Sora", sans-serif;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: color 0.15s;
}
.filter-btn:hover {
  color: var(--text);
}
.filter-btn.active {
  color: var(--accent);
}

.filter-count {
  background: var(--bg3);
  color: var(--text-dim);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 20px;
  min-width: 24px;
  text-align: center;
}
.filter-btn.active .filter-count {
  background: var(--tag-bg);
  color: var(--tag-text);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stats-grid {
  background: var(--bg2);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.stat-cell {
  padding: 14px 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-cell:nth-child(2n) {
  border-right: none;
}
.stat-cell:nth-last-child(-n + 2) {
  border-bottom: none;
}

.stat-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* MAIN CONTENT */
.main-content {
  min-width: 0;
  position: relative;
  z-index: 1;
}

/* TOOLBAR */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  font-size: 14px;
}

.search-input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: 13px;
  padding: 7px 12px 7px 36px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.search-input::placeholder {
  color: var(--text-dim);
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-select {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: 13px;
  padding: 7px 10px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.sort-select:focus {
  border-color: var(--accent);
}
.sort-select option {
  background: var(--bg2);
}

.view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.view-btn {
  background: var(--bg2);
  border: none;
  color: var(--text-muted);
  padding: 7px 10px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s;
  border-right: 1px solid var(--border);
  line-height: 1;
}
.view-btn:last-child {
  border-right: none;
}
.view-btn:hover {
  background: var(--bg3);
  color: var(--text);
}
.view-btn.active {
  background: var(--accent);
  color: #fff;
}

/* RESULTS META */
.results-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: "JetBrains Mono", monospace;
  display: flex;
  align-items: center;
  gap: 8px;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s;
}
.active-filter-tag:hover {
  background: #2a4460;
}

/* ANIME LIST */
.anime-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg2);
}

.anime-row {
  display: flex;
  align-items: flex-start;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  gap: 5px;
  transition: background 0.15s;
  cursor: pointer;
  position: relative;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.anime-row:last-child {
  border-bottom: none;
}
.anime-row:hover {
  background: var(--bg3);
}

.anime-list-container {
  display: flex;
  flex-direction: row;
  gap: 16px;
  width: 100%;
}

.anime-rank {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-dim);
  width: 28px;
  text-align: center;
  padding-top: 2px;
}

.anime-cover {
  width: 100px;
  height: 140px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid var(--border);
}
.anime-cover img {
  width: 100%;
  height: 100%;
}

.anime-info {
  flex: 1;
  min-width: 0;
}

.anime-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.anime-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.anime-title:hover {
  color: #79c0ff;
  text-decoration: underline;
}

.status-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 20px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.status-airing {
  background: rgba(86, 211, 100, 0.15);
  color: var(--accent3);
  border: 1px solid rgba(86, 211, 100, 0.3);
}
.status-finished {
  background: rgba(88, 166, 255, 0.12);
  color: var(--accent);
  border: 1px solid rgba(88, 166, 255, 0.25);
}
.status-upcoming {
  background: rgba(210, 168, 255, 0.12);
  color: var(--accent4);
  border: 1px solid rgba(210, 168, 255, 0.25);
}
.status-hiatus {
  background: rgba(247, 129, 102, 0.12);
  color: var(--accent2);
  border: 1px solid rgba(247, 129, 102, 0.25);
}

.anime-meta {
  font-size: 12px;
  color: var(--text-dim);
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.anime-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.anime-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

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

.tag {
  background: var(--tag-bg);
  color: var(--tag-text);
  text-decoration: none;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  font-family: "JetBrains Mono", monospace;
  transition: background 0.15s;
  cursor: pointer;
  border: 1px solid transparent;
}
.tag:hover {
  background: #2a4460;
  border-color: var(--accent);
}

.tag.genre-action {
  background: rgba(247, 129, 102, 0.12);
  color: var(--accent2);
}
.tag.genre-fantasy {
  background: rgba(210, 168, 255, 0.12);
  color: var(--accent4);
}
.tag.genre-romance {
  background: rgba(255, 127, 127, 0.12);
  color: #ff8080;
}
.tag.genre-sci {
  background: rgba(88, 166, 255, 0.12);
  color: var(--accent);
}
.tag.genre-sports {
  background: rgba(86, 211, 100, 0.12);
  color: var(--accent3);
}
.tag.genre-slice {
  background: rgba(255, 166, 87, 0.12);
  color: var(--accent5);
}

.anime-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 60px;
}

.score-display {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  font-weight: 600;
}

.score-high {
  color: var(--accent3);
}
.score-mid {
  color: var(--accent5);
}
.score-low {
  color: var(--accent2);
}

.star {
  color: var(--accent5);
  font-size: 12px;
}

.episodes-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-dim);
  background: var(--bg3);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.year-text {
  font-size: 11px;
  color: var(--text-dim);
  font-family: "JetBrains Mono", monospace;
}

/* GRID VIEW */
.anime-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.animes-block {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: radial-gradient(620px 220px at 8% -20%, rgba(88, 166, 255, 0.22), transparent 65%), radial-gradient(540px 200px at 98% -35%, rgba(247, 129, 102, 0.14), transparent 62%), var(--bg2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}
.anime-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  animation: fadeIn 0.2s ease;
}

.anime-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card-cover {
  height: 208px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  border-bottom: 1px solid var(--border);
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* evita esticar */
  image-rendering: auto;
}

.card-body {
  padding: 10px 12px 12px;
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.card-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-score {
  display: flex;
  align-items: center;
  gap: 3px;
}
.card-score-val {
  color: var(--accent5);
  font-weight: 600;
}

.card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

/* PAGINATION */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-info {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-muted);
}

.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-btn {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  min-width: 36px;
  text-align: center;
}
.page-btn:hover:not(:disabled) {
  background: var(--bg3);
  color: var(--text);
  border-color: var(--text-dim);
}
.page-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.page-btn.ellipsis {
  cursor: default;
  border-color: transparent;
  background: transparent;
}

/* EMPTY STATE */
.empty-state {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg2);
  padding: 64px 24px;
  text-align: center;
}
.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}
.empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.empty-sub {
  font-size: 13px;
  color: var(--text-dim);
}

.nav-trend {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.link-trend a {
  text-decoration: none;
  color: var(--text-muted);
  transition: .8s ;
}
.link-trend a:hover {
  color: #58a6ff;
}
/* RESPONSIVE */
@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }

  .desktop-sidebar {
    display: none;
  }

  .mobile-drawer {
    display: block;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .header-nav {
    display: none;
  }

  .header-badge {
    display: none;
  }

  .home-mobile-filters {
    display: none;
  }
}

@media (max-width: 800px) {
  .anime-cover {
    display: none;
  }
  header {
    padding: 0 16px;
  }
  .container {
    padding: 16px;
  }
  .anime-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .pagination-wrap {
    justify-content: center;
  }
  .page-info {
    display: none;
  }
}

@media (max-width: 768px) {
  .container > .sidebar {
    display: none; /* some a sidebar normal */
  }

  .desktop-sidebar {
    display: none;
  }

  .header-nav.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* links ocupam largura */
  .nav-link {
    width: 100%;
    padding: 12px;
  }

  .home-mobile-filters .home-mobile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 700px) {
  .anime-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
  }

  .anime-cover {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-wrap: nowrap;
    height: 56px;
    padding: 0;
  }

  .header-nav {
    width: 100%;
    justify-content: space-around;
  }
  .anime-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colunas fixas */
    gap: 10px;
  }

  .anime-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .anime-side {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    margin-top: 10px;
  }

  .card-cover {
    height: 90px;
  }

  .card-title {
    font-size: 12px;
  }
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(720px 200px at 0% -20%, rgba(102, 163, 255, 0.14), transparent 60%),
    radial-gradient(620px 200px at 100% -30%, rgba(102, 163, 255, 0.12), transparent 62%),
    var(--bg2);
}

.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 24px 30px;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.3fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 420px) {
  header {
    padding: 0 12px;
  }

  .header-inner {
    gap: 10px;
  }

  .logo {
    font-size: 16px;
  }

  .logo-icon {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }

  .container {
    padding: 12px;
    gap: 14px;
  }

  .back-top-btn {
    width: 42px;
    height: 42px;
    font-size: 18px;
    right: 12px;
    bottom: 12px;
  }
}

.site-footer__brand,
.site-footer__col {
  display: grid;
  gap: 8px;
}

.site-footer__lead {
  max-width: 400px;
}

.site-footer__logo {
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-footer h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 2px;
}

.site-footer p,
.site-footer small {
  color: var(--text-muted);
  line-height: 1.6;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer__col > a {
  display: inline-flex;
  width: fit-content;
  line-height: 1.3;
  padding: 1px 0;
}

.site-footer__col > a:hover,
.site-footer p a:hover {
  color: var(--accent);
}

body.changelog-body .site-footer {
  background: #e9edf2;
  border-top-color: #d2d9e2;
}

body.changelog-body .site-footer__logo,
body.changelog-body .site-footer a {
  color: #1c2431;
}

body.changelog-body .site-footer p,
body.changelog-body .site-footer small,
body.changelog-body .site-footer h4 {
  color: #5f6878;
}

@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 22px 16px 26px;
    gap: 12px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
    padding-bottom: 8px;
    margin-bottom: 2px;
    border-bottom: 1px solid rgba(150, 170, 190, 0.25);
  }

  .site-footer__col {
    border: 1px solid rgba(150, 170, 190, 0.2);
    border-radius: 10px;
    padding: 10px;
    background: rgba(8, 14, 24, 0.45);
  }
}

@media (max-width: 520px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .site-footer__brand {
    margin-bottom: 0;
  }

  .site-footer__col {
    padding: 10px 11px;
  }

  .site-footer__logo {
    font-size: 22px;
  }
}

@media (min-width: 1600px) {
  .site-footer__inner {
    max-width: 1520px;
    padding: 30px 32px 34px;
  }
}



