:root {
  --sakura: #f4a7c1;
  --petal: #ffd4e5;
  --blush: #fff1f6;
  --cream: #fffaf7;
  --ink: #3d2a36;
  --muted: #8d6b7c;
  --accent: #e85d8c;
  --accent-soft: #f7b6cc;
  --leaf: #c5e8d8;
  --card: #ffffff;
  --line: rgba(232, 93, 140, 0.16);
  --shadow: 0 10px 30px rgba(232, 93, 140, 0.12);
  --radius: 1.25rem;
  --nav-h: 4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Nunito", system-ui, sans-serif;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #ffe4ef 0%, transparent 55%),
    radial-gradient(900px 400px at 110% 0%, #ffe9d6 0%, transparent 50%),
    var(--cream);
  line-height: 1.55;
}

body.is-reader {
  background: #1a1014;
  color: #f8eef2;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #c83d70; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.4rem;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.petal-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(244, 167, 193, 0.35) 0 8px, transparent 9px),
    radial-gradient(circle at 82% 14%, rgba(255, 212, 229, 0.5) 0 6px, transparent 7px),
    radial-gradient(circle at 70% 78%, rgba(244, 167, 193, 0.25) 0 10px, transparent 11px);
  opacity: 0.7;
}

.is-reader .petal-layer { display: none; }

.wrap {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 3rem;
}

.wrap--home { margin-top: 1.5rem; }
.wrap--narrow { width: min(440px, calc(100% - 2rem)); padding-top: 2rem; }
.wrap--form { width: min(720px, calc(100% - 2rem)); }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-h);
  background: rgba(255, 250, 247, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
}

.logo span span { color: var(--accent); }
.logo:hover { color: var(--ink); }

.logo--tiny {
  font-size: 0.9rem;
  color: #f8eef2;
  opacity: 0.9;
  font-family: var(--display);
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.logo--tiny:hover {
  color: #fff;
  background: rgba(232, 93, 140, 0.35);
}

.nav__toggle {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(40deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-40deg); }

.nav__links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  padding: 0.75rem 1rem 1.25rem;
  background: rgba(255, 250, 247, 0.96);
  border-bottom: 1px solid var(--line);
  gap: 0.35rem;
}

.nav.is-open .nav__links { display: flex; }

.nav__links a,
.nav__links .nav__ghost {
  color: var(--ink);
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.nav__links a.is-active,
.nav__links a:hover,
.nav__links .nav__ghost:hover {
  background: var(--petal);
  color: var(--ink);
}

.nav__user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__user img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  object-fit: cover;
}

.nav__ghost {
  opacity: 0.7;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.nav__logout {
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(232, 93, 140, 0.28);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn:hover {
  color: #fff;
  background: #d94b7c;
  transform: translateY(-1px);
}

.btn--sm { padding: 0.45rem 0.95rem; font-size: 0.92rem; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: var(--blush); color: var(--ink); box-shadow: none; }
.btn--google { width: 100%; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.btn--google:hover { background: var(--blush); color: var(--ink); }
.btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
  box-shadow: none;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 52vh;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  display: flex;
  align-items: flex-end;
}

.hero__slide.is-on { opacity: 1; position: relative; }

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(61, 42, 54, 0.1), rgba(61, 42, 54, 0.62)),
    var(--cover) center/cover no-repeat;
  filter: saturate(1.05);
  transform: scale(1.04);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0 2.5rem;
  color: #fff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero--empty {
  min-height: 44vh;
  display: grid;
  place-items: end start;
  background:
    linear-gradient(180deg, rgba(244, 167, 193, 0.2), rgba(61, 42, 54, 0.45)),
    radial-gradient(circle at 80% 20%, #ffd4e5, #f4a7c1 40%, #c5e8d8);
}

.hero--empty .hero__content { color: #fff; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.hero .eyebrow { color: #ffe4ef; }

.hero__desc {
  max-width: 36rem;
  opacity: 0.92;
}

.hero__dots {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.4rem;
}

.hero__dots button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.hero__dots button.is-on {
  background: #fff;
  transform: scale(1.2);
}

.rail { margin-bottom: 2rem; }

.rail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.rail__head a { font-size: 0.9rem; }

.rail__track {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  padding: 0.25rem 0 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.rail__track::-webkit-scrollbar { height: 6px; }
.rail__track::-webkit-scrollbar-thumb {
  background: var(--accent-soft);
  border-radius: 99px;
}

.card {
  flex: 0 0 42vw;
  max-width: 180px;
  scroll-snap-align: start;
  color: var(--ink);
  transition: transform 0.3s var(--ease);
}

.card:hover { color: var(--ink); transform: translateY(-3px); }

.grid .card {
  flex: none;
  max-width: none;
}

.card__cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--petal);
  box-shadow: var(--shadow);
}

.card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__meta { padding: 0.55rem 0.15rem 0; }
.card__title {
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chip {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--blush);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 0.8rem;
}

.page-head { margin: 1.5rem 0 1.25rem; }
.page-head--row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.page-head__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.filters {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.filters input,
.filters select,
.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.filters input:focus,
.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--sakura);
  box-shadow: 0 0 0 4px rgba(244, 167, 193, 0.25);
}

.form { display: grid; gap: 0.9rem; }
.form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; }
.form .btn { justify-self: start; }

.check {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500 !important;
}

.checks {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.checks legend { padding: 0 0.4rem; font-weight: 700; }

.series {
  display: grid;
  gap: 1.25rem;
  margin: 1.25rem 0 2rem;
}

.series__cover {
  position: relative;
  width: min(220px, 55%);
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.series__cover img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }

.series__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  color: var(--muted);
}

.series__desc { color: var(--muted); white-space: pre-wrap; }
.series__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0 0 1rem;
}

.tags a {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: var(--leaf);
  color: #2d5a4a;
  border-radius: 999px;
  font-size: 0.82rem;
}

.chapter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.chapter-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}

.chapter-list li:last-child a { border-bottom: 0; }
.chapter-list a:hover { background: var(--blush); }

.muted { color: var(--muted); font-size: 0.85rem; }
.empty, .empty-inline { color: var(--muted); }
.empty { padding: 2rem 0; text-align: center; }

.notice {
  padding: 0.8rem 1rem;
  border-radius: 0.9rem;
  background: var(--leaf);
  margin-bottom: 1rem;
}

.notice--err { background: #ffe0e6; }
.notice--18 {
  background: #ffd0d8;
  color: #8a2040;
  font-weight: 700;
}

.badge-18 {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 2;
  padding: 0.15rem 0.45rem;
  border-radius: 0.45rem;
  background: #e85d8c;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 0 #b63d68;
}

.chip--18 {
  background: #ffe0e8;
  color: #c83d70;
}

.avatar-edit {
  position: relative;
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
}

.avatar-edit--lg {
  width: 8rem;
  height: 8rem;
  margin: 0 auto 0.4rem;
  border: 4px dashed var(--sakura);
  background: var(--blush);
}

.avatar-edit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: none;
}

.avatar-edit input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.avatar-edit__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: rgba(61, 42, 54, 0.45);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.avatar-edit__overlay svg {
  width: 1.5rem;
  height: 1.5rem;
}

.avatar-edit:hover .avatar-edit__overlay,
.avatar-edit:focus-within .avatar-edit__overlay {
  opacity: 1;
}

.avatar-edit--lg .avatar-edit__overlay {
  opacity: 1;
  background: rgba(61, 42, 54, 0.28);
}

.avatar-edit--lg:hover .avatar-edit__overlay {
  background: rgba(61, 42, 54, 0.5);
}

.nsfw-banner {
  position: relative;
  z-index: 9;
  text-align: center;
  padding: 0.55rem 1rem;
  background: #e85d8c;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
}

.profile-preview {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.profile-preview__id {
  display: grid;
  gap: 0.15rem;
}

.profile-preview__name {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.role {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.favs { margin-top: 2rem; }
.grid--favs { grid-template-columns: repeat(2, 1fr); }

.series-banner {
  margin: 1rem 0 1.4rem;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--petal);
  box-shadow: var(--shadow);
}

.series-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-preview {
  width: 100%;
  max-width: 420px;
  border-radius: 0.8rem;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.admin-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.admin-list li {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  background: var(--card);
  border-radius: 1rem;
  border: 1px solid var(--line);
}

.admin-list img {
  width: 3rem;
  height: 4.2rem;
  object-fit: cover;
  border-radius: 0.5rem;
}

.admin-list--compact li { grid-template-columns: 1fr auto; }
.admin-list--compact img { display: none; }

.admin-list--users img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.55rem;
  object-fit: cover;
}

.stat-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
.stat-grid li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.85rem 0.95rem;
}
.stat-grid strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
}
.stat-grid span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.86rem;
}
@media (min-width: 720px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}

.cover-preview {
  width: 120px;
  border-radius: 0.8rem;
}

.danger { margin-top: 2.5rem; }
.center-or { text-align: center; margin: 0; }

.reader-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: rgba(26, 16, 20, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.reader-bar__back {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  color: #f8eef2;
}

.reader-bar__back svg {
  width: 1.35rem;
  height: 1.35rem;
}

.reader-bar__back:hover {
  color: #fff;
}

.reader-bar__titles {
  flex: 1;
  min-width: 0;
  display: grid;
}

.reader-bar__titles a,
.reader-bar__titles span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reader-bar__titles a { color: #f8eef2; font-weight: 700; font-size: 0.95rem; }
.reader-bar__titles span { color: #c9a3b2; font-size: 0.8rem; }

.reader { width: min(820px, 100%); margin: 0 auto 3rem; }
.reader__pages img {
  width: 100%;
  background: #0e090b;
  opacity: 0;
  animation: fadein 0.45s var(--ease) forwards;
}

.reader__credit {
  text-align: center;
  color: #c9a3b2;
  padding: 1.5rem 1rem 0.5rem;
  overflow: visible;
  position: relative;
  z-index: 6;
}

.reader__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem 2rem;
}

.is-reader .btn--ghost {
  color: #f8eef2;
  border-color: rgba(255, 255, 255, 0.15);
}
.is-reader .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.comments {
  padding: 0 1rem 3rem;
  color: #f8eef2;
  scroll-margin-top: 4.5rem;
  overflow: visible;
}

.comments h2 { margin-bottom: 0.8rem; }

.comment-form { display: grid; gap: 0.6rem; margin-bottom: 1.2rem; }
.comment-form textarea {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.75rem;
  color: #fff;
}

.comment-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; overflow: visible; }
.comment-list li { display: grid; grid-template-columns: 3rem 1fr; gap: 0.75rem; position: relative; align-items: start; }

.user-tip {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  color: inherit;
}

a.user-tip:hover { color: inherit; }

.user-tip__name {
  color: var(--sakura);
  cursor: pointer;
  border-bottom: 1px dashed rgba(244, 167, 193, 0.5);
}

.user-pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: 148px;
  transform: translateX(-50%) translateY(6px);
  background: #fff;
  color: var(--ink);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}

.user-tip:hover .user-pop,
.user-tip:focus-within .user-pop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.user-pop__shot {
  display: block;
  height: 78px;
  overflow: hidden;
  background: var(--petal);
}

.user-pop__shot img {
  width: 100%;
  height: 156px;
  object-fit: cover;
  object-position: center top;
}

.user-pop__meta {
  display: grid;
  padding: 0.45rem 0.55rem 0.55rem;
  gap: 0.1rem;
}

.user-pop__meta strong {
  font-size: 0.85rem;
}

.user-pop__meta em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
}

.is-reader .user-pop {
  background: #2a1a22;
  color: #f8eef2;
}

.is-reader .user-pop__meta em { color: #c9a3b2; }
.avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 0.7rem;
  overflow: hidden;
  background: #2a1a22;
  display: block;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.avatar--lg {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
}

.comment-list p { white-space: pre-wrap; word-break: break-word; }
.comment-list__meta { display: flex; gap: 0.5rem; align-items: baseline; margin-bottom: 0.2rem; }
.linkish {
  background: none;
  border: 0;
  color: #f4a7c1;
  padding: 0;
  cursor: pointer;
}

.is-reader .empty-inline,
.is-reader .empty { color: #c9a3b2; }
.is-reader .empty-inline a { color: var(--sakura); }

.footer {
  position: relative;
  z-index: 1;
  padding: 2rem 1rem 2.5rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.is-reader .footer { display: none; }

@keyframes fadein {
  to { opacity: 1; }
}

@media (min-width: 720px) {
  .nav__toggle { display: none; }
  .nav__links {
    display: flex;
    flex-direction: row;
    position: static;
    padding: 0;
    background: transparent;
    border: 0;
    align-items: center;
  }
  .card { flex-basis: 160px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .series {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
  .hero { min-height: 58vh; }
  .filters {
    grid-template-columns: 1fr 10rem 10rem auto;
    align-items: center;
  }
  .grid--favs { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(6, 1fr); }
  .card { flex-basis: 170px; }
}
