/* Энциклопедия аниме и манги: карточки, главная с каруселью, каталог с фильтрами, страница произведения, персонажи,
   люди, студии, сезоны, рейтинги, «Мой список». Цвета и шрифты, шапка с поиском — из base.css. Подключается на страницах functions/encyclopedia.js */

/* ==================== КАРТОЧКИ ==================== */

.e-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 22px 16px;
}

.e-rail {
  display: grid;
  grid-auto-columns: minmax(150px, 176px);
  grid-auto-flow: column;
  gap: 16px;
  margin: 0 -4px;
  padding: 6px 4px 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(182, 156, 255, 0.3) transparent;
  scrollbar-width: thin;
}

.e-rail > * {
  scroll-snap-align: start;
}

.e-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
}

.e-cover {
  position: relative;
  display: block;
  aspect-ratio: 225 / 320;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-solid);
  box-shadow: 0 10px 26px rgba(3, 2, 14, 0.45);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.e-card:hover .e-cover,
.e-card:focus-within .e-cover {
  border-color: var(--border-strong);
  box-shadow: 0 16px 34px rgba(var(--accent-rgb), 0.28);
  transform: translateY(-3px);
}

.e-score {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 8px;
  color: var(--yellow);
  background: rgba(7, 6, 26, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.e-flag {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.e-flag.is-ongoing {
  background: rgba(46, 160, 110, 0.9);
}

.e-flag.is-anons {
  background: rgba(var(--accent-rgb), 0.9);
}

.e-list-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 8px;
  color: #fff;
  background: rgba(79, 124, 255, 0.92);
  font-size: 11px;
  font-weight: 800;
}

.e-title {
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.e-title a:hover {
  color: var(--accent-light);
}

.e-meta,
.e-genres,
.e-role {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.e-genres {
  overflow: hidden;
  color: var(--faint);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e-role {
  color: var(--accent-light);
}

.e-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

/* Персонажи и люди */
.p-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 18px 14px;
}

.p-grid.is-wide {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.e-rail .p-card {
  min-width: 0;
}

.p-card {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.p-photo {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-solid);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.p-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-card:hover .p-photo,
.p-card:focus-within .p-photo {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.p-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.p-name a:hover {
  color: var(--accent-light);
}

.p-note {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* ==================== ГЛАВНАЯ ==================== */

.hero {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-slide {
  position: relative;
  animation: hero-in 0.6s ease;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(28px) saturate(1.3);
  opacity: 0.38;
  transform: scale(1.2);
}

.hero-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, var(--bg) 8%, rgba(7, 6, 26, 0.72) 50%, rgba(7, 6, 26, 0.35)),
    linear-gradient(0deg, var(--bg), transparent 40%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 48px 0 64px;
}

.hero-poster {
  display: block;
  overflow: hidden;
  aspect-ratio: 225 / 320;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 26px 60px rgba(3, 2, 14, 0.7), 0 0 0 6px rgba(var(--accent-rgb), 0.08);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title {
  max-width: 760px;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.08;
}

.hero-title a:hover {
  color: var(--accent-light);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin: 16px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.hero-score {
  color: var(--yellow);
  font-weight: 800;
}

.hero-desc {
  max-width: 640px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.hero-copy .hero-actions {
  margin-top: 24px;
}

.hero-dots {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 28px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button[aria-pressed="true"] {
  width: 44px;
  background: linear-gradient(90deg, var(--accent), var(--pink));
}

@keyframes hero-in {
  from {
    opacity: 0;
  }
}

.home-search {
  max-width: 760px;
  margin: 34px auto 0;
}

.review-teasers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.review-teaser {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-soft);
}

.review-teaser-poster {
  display: block;
  overflow: hidden;
  aspect-ratio: 225 / 320;
  border-radius: 10px;
}

.review-teaser-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-teaser-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  font-weight: 700;
}

.review-teaser-text {
  margin: 6px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.review-score {
  padding: 1px 8px;
  border-radius: 8px;
  color: var(--yellow);
  background: rgba(255, 210, 122, 0.1);
  font-size: 12px;
  font-weight: 800;
}

/* ==================== КАТАЛОГ ==================== */

.ency-filters .field {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 0;
}

.ency-filters label,
.ency-filters legend,
.ency-filters summary {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ency-filters summary {
  cursor: pointer;
}

.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filters-head h2 {
  font-size: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.filter-sub {
  margin: 12px 0 8px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.check-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.check-chip {
  position: relative;
  cursor: pointer;
}

.check-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.check-chip:hover span {
  color: var(--text);
}

.check-chip input:checked + span {
  border-color: rgba(var(--accent-rgb), 0.6);
  color: #fff;
  background: rgba(var(--accent-rgb), 0.28);
}

.check-chip input:focus-visible + span {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

.filters-actions {
  display: flex;
  gap: 8px;
}

.filters-actions .primary-btn {
  flex: 1;
}

.filters-open,
.filters-close {
  display: none;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
}

.pager-page {
  color: var(--muted);
  font-size: 14px;
}

/* ==================== СТРАНИЦА ПРОИЗВЕДЕНИЯ ==================== */

.entry-page {
  padding-top: 28px;
}

.entry-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.entry-poster {
  overflow: hidden;
  aspect-ratio: 225 / 320;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: var(--panel-solid);
  box-shadow: 0 24px 60px rgba(3, 2, 14, 0.6), 0 0 40px rgba(var(--accent-rgb), 0.18);
}

.entry-poster.is-portrait {
  aspect-ratio: 2 / 3;
}

.entry-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-title {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.1;
}

.entry-alt {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.entry-alt span + span::before {
  margin-right: 14px;
  color: var(--faint);
  content: "·";
}

.entry-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 18px;
}

.score-box {
  display: grid;
  gap: 2px;
  min-width: 108px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-soft);
}

.score-box strong {
  font-size: 20px;
}

.score-box span {
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-ongoing {
  color: var(--green);
}

.status-anons {
  color: var(--accent-light);
}

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

.entry-lead {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
}

/* Панель списка: статус, оценка, прогресс */
.list-panel {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 720px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(34, 27, 82, 0.62), rgba(16, 12, 44, 0.72));
}

.list-panel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.list-panel .select {
  width: auto;
  min-width: 200px;
}

.progress-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.progress-control .input {
  width: 84px;
  text-align: center;
}

.progress-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  transition: width 0.3s ease;
}

.score-picker button {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
  background: var(--panel-soft);
  font-weight: 800;
  cursor: pointer;
}

.score-picker button[aria-pressed="true"] {
  border-color: rgba(255, 210, 122, 0.6);
  color: var(--bg);
  background: var(--yellow);
}

.fav-btn[aria-pressed="true"] {
  border-color: rgba(255, 111, 181, 0.5);
  color: var(--pink);
}

.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
  margin-top: 20px;
}

.entry-side {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  display: grid;
  gap: 16px;
}

.entry-side h2 {
  margin-bottom: 14px;
  font-size: 18px;
}

.entry-main h2,
.entry-page > .section h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

.facts {
  display: grid;
  gap: 12px;
}

.facts div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 10px;
}

.facts dt {
  color: var(--faint);
  font-size: 13px;
}

.facts dd {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.facts a {
  color: var(--accent-light);
}

.facts.is-inline {
  max-width: 560px;
  margin-top: 20px;
}

.link-list {
  display: grid;
  gap: 8px;
  list-style: none;
}

.link-list a {
  color: var(--accent-light);
  font-size: 14px;
}

.prose {
  max-width: 760px;
  color: #d9d5f5;
  font-size: 15px;
  line-height: 1.8;
}

.prose p + p {
  margin-top: 12px;
}

.prose a {
  color: var(--accent-light);
  text-decoration: underline;
  text-decoration-color: rgba(var(--accent-rgb), 0.4);
  text-underline-offset: 3px;
}

.entry-info .prose {
  margin-top: 22px;
}

.bb-spoiler {
  display: inline-block;
  margin: 2px 0;
  padding: 2px 10px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
}

.bb-spoiler summary {
  color: var(--accent-light);
  cursor: pointer;
}

.more-block {
  margin-top: 16px;
}

.more-block summary {
  margin-bottom: 14px;
  color: var(--accent-light);
  font-weight: 700;
  cursor: pointer;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.related-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-soft);
  transition: border-color 0.2s ease;
}

.related-card:hover {
  border-color: var(--border-strong);
}

.related-card img,
.related-card .poster-empty {
  width: 48px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  font-size: 16px;
}

.related-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.related-card strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Отзывы */
.review-list {
  display: grid;
  gap: 14px;
}

.entry-review {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-soft);
}

.entry-review.is-mine {
  border-color: rgba(var(--accent-rgb), 0.45);
}

.entry-review-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.entry-review-body {
  color: #d9d5f5;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.entry-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.review-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--panel);
}

/* ==================== СТУДИИ, СЕЗОНЫ, РЕЙТИНГИ ==================== */

.studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.studio-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 18px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-soft);
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.studio-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.studio-card img {
  max-width: 120px;
  height: 60px;
  object-fit: contain;
}

.studio-mark {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 14px;
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.12);
  font-size: 22px;
}

.studio-card strong {
  font-size: 14px;
}

.studio-head {
  justify-content: flex-start;
}

.studio-head img {
  max-width: 160px;
  max-height: 80px;
  object-fit: contain;
}

.season-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.season-nav [aria-current="page"] {
  border-color: rgba(var(--accent-rgb), 0.6);
  color: #fff;
  background: rgba(var(--accent-rgb), 0.28);
}

.rank-list {
  display: grid;
  gap: 8px;
  list-style: none;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-soft);
}

.rank-place {
  color: var(--accent-light);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.rank-row:nth-child(-n+3) .rank-place {
  color: var(--yellow);
}

.rank-poster {
  display: block;
  overflow: hidden;
  aspect-ratio: 225 / 320;
  border-radius: 8px;
}

.rank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.rank-info a:hover {
  color: var(--accent-light);
}

.rank-info small {
  color: var(--muted);
  font-size: 12px;
}

.rank-score {
  display: grid;
  justify-items: end;
  color: var(--yellow);
  font-weight: 800;
}

.rank-score small {
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
}

/* ==================== МОЙ СПИСОК ==================== */

.list-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.list-stats button {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  background: var(--panel-soft);
  text-align: left;
  cursor: pointer;
}

.list-stats button[aria-pressed="true"] {
  border-color: rgba(var(--accent-rgb), 0.6);
  background: rgba(var(--accent-rgb), 0.2);
}

.list-stats strong {
  font-size: 22px;
}

.list-stats span {
  color: var(--muted);
  font-size: 12px;
}

.list-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.list-summary strong {
  color: var(--text);
}

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.list-toolbar .input {
  flex: 1;
  min-width: 200px;
}

.list-toolbar .select {
  width: auto;
}

.list-rows {
  display: grid;
  gap: 8px;
}

.list-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 170px 150px 110px;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-soft);
}

.list-row-poster {
  display: block;
  overflow: hidden;
  aspect-ratio: 225 / 320;
  border-radius: 8px;
}

.list-row-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-row-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.list-row-title a {
  font-weight: 700;
}

.list-row-title a:hover {
  color: var(--accent-light);
}

.list-row-title small {
  color: var(--muted);
  font-size: 12px;
}

.list-row .select,
.list-row .input {
  min-height: 38px;
  padding: 6px 10px;
  font-size: 13px;
}

.list-row .progress-control .input {
  width: 64px;
}

.list-row .icon-only {
  min-width: 34px;
  min-height: 34px;
  padding: 0;
}

.score-bars {
  display: grid;
  gap: 4px;
  max-width: 420px;
}

.score-bar {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.score-bar i {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--pink));
}

.fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 16px 12px;
}

/* Вкладки-переключатели (кнопки с aria-pressed), например фильтр отзывов в сообществе */
.tabs-bar button[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.5), rgba(79, 124, 255, 0.35));
}

/* ==================== ПОДВАЛ ==================== */

.footer-source {
  margin-top: 18px;
  color: var(--faint);
  font-size: 12px;
}

.footer-source a {
  color: var(--muted);
  text-decoration: underline;
}

/* ==================== ПЛАНШЕТЫ И ТЕЛЕФОНЫ ==================== */

@media (max-width: 1080px) {
  .filters-open {
    display: inline-flex;
  }

  .filters-close {
    display: inline-flex;
  }

  .ency-filters {
    padding-bottom: 90px;
  }

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

  .entry-side {
    position: static;
  }

  .list-row {
    grid-template-columns: 48px minmax(0, 1fr) 150px;
  }

  .list-row .progress-control,
  .list-row .list-row-score {
    grid-column: 2 / -1;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 0;
  }

  .hero-inner {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 26px 0 52px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-desc {
    display: none;
  }

  .hero-copy .hero-actions {
    margin-top: 14px;
  }

  .entry-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .entry-poster {
    width: min(220px, 60vw);
    margin: 0 auto;
  }

  .e-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 18px 12px;
  }

  .review-teasers {
    grid-template-columns: 1fr;
  }

  .facts div {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .rank-row {
    grid-template-columns: 30px 44px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px 10px;
  }

  .list-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .list-row > .select,
  .list-row .progress-control,
  .list-row .list-row-score {
    grid-column: 1 / -1;
  }

  .list-row .select {
    width: 100%;
  }

  .list-panel .select {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .e-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p-grid,
  .p-grid.is-wide,
  .fav-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-actions .ghost-btn,
  .hero-actions .primary-btn {
    flex: 1;
  }
}
