:root {
  color-scheme: light;
  --bg: #eef0f6;
  --surface: rgba(246, 247, 251, 0.88);
  --surface-strong: #f8f9fc;
  --text: #17171f;
  --muted: #686b78;
  --soft: #e1e4ee;
  --line: rgba(30, 34, 50, 0.14);
  --accent: #7257ff;
  --accent-2: #e85d9e;
  --accent-3: #5eb4ff;
  --danger: #c9354b;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(32, 37, 58, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 10%, rgba(114, 87, 255, 0.18), transparent 25rem),
    radial-gradient(circle at 86% 8%, rgba(232, 93, 158, 0.15), transparent 28rem),
    linear-gradient(135deg, #f7f8fc 0%, #ececf6 45%, #e5edf7 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell,
.admin-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.public-header,
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 34px rgba(114, 87, 255, 0.24);
}

.brand strong {
  display: block;
  font-size: 1.04rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 249, 252, 0.86);
  box-shadow: 0 10px 30px rgba(32, 37, 58, 0.12);
  backdrop-filter: blur(18px);
}

.public-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 800;
  transition: 160ms ease;
}

.public-nav a::before {
  content: attr(data-step);
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.68rem;
  background: rgba(114, 87, 255, 0.09);
}

.public-nav a:not(:last-child)::after {
  position: absolute;
  right: -6px;
  width: 12px;
  height: 1px;
  content: "";
  background: rgba(30, 34, 50, 0.18);
}

.public-nav a:hover,
.public-nav a[aria-current="page"] {
  color: var(--text);
  background: #fdfdff;
  box-shadow: 0 8px 24px rgba(32, 37, 58, 0.13);
}

.page-hero {
  position: relative;
  padding: 54px 0 36px;
}

.page-hero::before {
  position: absolute;
  inset: 24px -18px 0;
  z-index: -1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(248, 249, 252, 0.94), rgba(237, 240, 247, 0.72)),
    radial-gradient(circle at 24% 20%, rgba(114, 87, 255, 0.14), transparent 22rem),
    radial-gradient(circle at 84% 18%, rgba(232, 93, 158, 0.12), transparent 24rem);
  box-shadow: var(--shadow);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1,
h2 {
  font-family: Poppins, Inter, sans-serif;
  letter-spacing: 0;
}

.home-hero {
  display: block;
  padding: 26px 0 34px;
}

.hero-art {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 22px;
  background: #f8f9fc;
  box-shadow: 0 26px 90px rgba(32, 37, 58, 0.22);
}

.hero-art img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.hero-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12) 32%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(0deg, rgba(17, 17, 31, 0.2), transparent 44%);
}

.hero-glass {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 1;
  width: auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(246, 247, 251, 0.88);
  box-shadow: 0 20px 60px rgba(32, 37, 58, 0.18);
  backdrop-filter: blur(18px);
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(2.15rem, 6vw, 4.1rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.quick-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  overflow: hidden;
  border: 1px solid rgba(114, 87, 255, 0.18);
  border-radius: 999px;
  color: var(--text);
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 240, 250, 0.86)),
    radial-gradient(circle at 0% 0%, rgba(94, 180, 255, 0.2), transparent 9rem);
  box-shadow: 0 12px 30px rgba(32, 37, 58, 0.11);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.quick-links a::after {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  content: "";
  opacity: 0.32;
  transition: transform 160ms ease, opacity 160ms ease;
}

.quick-links .primary-link {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 42px rgba(114, 87, 255, 0.24);
}

.quick-links a:hover {
  transform: translateY(-3px);
  border-color: rgba(114, 87, 255, 0.32);
  box-shadow: 0 18px 46px rgba(32, 37, 58, 0.16);
}

.quick-links a:hover::after {
  transform: scale(1.18);
  opacity: 0.72;
}

.page-hero.compact {
  min-height: 270px;
}

.simple-page-heading {
  padding: 54px 0 20px;
}

.simple-page-heading h1 {
  max-width: 880px;
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.image-page-hero {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 300px;
}

.image-page-hero::before {
  inset: 18px -18px 18px;
}

.image-page-hero img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 24px 72px rgba(32, 37, 58, 0.18);
}

.content-band {
  padding: 34px 0 80px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 28px 0 44px;
  border-top: 1px solid rgba(30, 34, 50, 0.12);
}

.site-footer a {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  background: rgba(248, 249, 252, 0.74);
  transition: 160ms ease;
}

.site-footer a:hover,
.site-footer a[aria-current="page"] {
  color: var(--text);
  background: #f8f9fc;
  box-shadow: 0 12px 34px rgba(32, 37, 58, 0.12);
}

.trust-page {
  max-width: 820px;
  margin: 0 0 86px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(248, 249, 252, 0.84);
  box-shadow: var(--shadow);
}

.trust-page h2 {
  margin: 28px 0 8px;
  font-size: 1.22rem;
}

.trust-page h2:first-child {
  margin-top: 0;
}

.trust-page p {
  margin: 0 0 16px;
  color: #333746;
  font-size: 1.02rem;
  line-height: 1.8;
}

.trust-page a {
  color: #4f3bd3;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading.tight {
  align-items: center;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(1.45rem, 4vw, 2.35rem);
}

.status-pill,
.genre-filter {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(248, 249, 252, 0.9);
}

.post-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  align-items: end;
  margin: -4px 0 22px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(248, 249, 252, 0.9), rgba(232, 237, 248, 0.72)),
    radial-gradient(circle at 100% 0%, rgba(232, 93, 158, 0.11), transparent 16rem);
  box-shadow: 0 18px 54px rgba(32, 37, 58, 0.13);
}

.search-field,
.select-field {
  gap: 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  font-weight: 800;
}

.genre-filter {
  padding: 0 14px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.blog-grid .post-card {
  grid-column: span 4;
}

.recommendation-post-card {
  grid-column: span 4;
}

.featured-post-card {
  grid-column: span 8;
}

.featured-post-card .image-wrap {
  aspect-ratio: 21 / 9;
}

.featured-post-card h3 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.post-card,
.ranking-row,
.admin-card,
.archive-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.post-card {
  overflow: hidden;
  position: relative;
  isolation: isolate;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.post-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(135deg, rgba(114, 87, 255, 0.12), transparent 38%),
    radial-gradient(circle at 100% 0%, rgba(232, 93, 158, 0.14), transparent 13rem);
  opacity: 0;
  transition: opacity 180ms ease;
}

.post-card:hover,
.ranking-row:hover,
.mini-rec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 80px rgba(32, 37, 58, 0.16);
}

.post-card:hover {
  border-color: rgba(114, 87, 255, 0.28);
}

.post-card:hover::before {
  opacity: 1;
}

.post-card-link {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

.image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--soft);
}

.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.post-card:hover img {
  transform: scale(1.04);
}

.category-badge,
.genre-chip,
.tag-row span {
  border: 1px solid rgba(114, 87, 255, 0.16);
  border-radius: 999px;
  color: #4f3bd3;
  background: rgba(114, 87, 255, 0.09);
}

.category-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  font-size: 0.76rem;
  font-weight: 900;
}

.post-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.recommendation-post-card .post-card-body {
  gap: 8px;
}

.post-card-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.post-card h3,
.ranking-row h3,
.admin-list h4 {
  font-size: 1.08rem;
  line-height: 1.25;
}

.post-card p,
.ranking-row p,
.recommendation-description,
.helper-text,
.empty-state p {
  color: var(--muted);
  line-height: 1.65;
}

.post-card p {
  display: -webkit-box;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.recommendation-post-card p {
  -webkit-line-clamp: 2;
}

.ranking-row p {
  margin: 0;
  font-size: 1rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.post-card-footer .tag-row:empty {
  display: none;
}

.tag-row span,
.genre-chip {
  padding: 5px 8px;
  font-size: 0.74rem;
  font-weight: 800;
}

.read-chip {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid rgba(114, 87, 255, 0.2);
  border-radius: 999px;
  color: #4f3bd3;
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(114, 87, 255, 0.08);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.post-card:hover .read-chip {
  transform: translateX(2px);
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.pagination,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pagination button,
.primary-button,
.ghost-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 850;
  background: #f8f9fc;
  transition: 160ms ease;
}

.pagination button,
.primary-button,
.ghost-button {
  padding: 0 15px;
}

.primary-button {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 34px rgba(114, 87, 255, 0.22);
}

.primary-button:hover,
.pagination button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(32, 37, 58, 0.12);
}

.pagination button.active {
  color: #fff;
  background: var(--accent);
}

.empty-state {
  padding: 34px;
  border: 1px dashed rgba(30, 34, 50, 0.16);
  border-radius: var(--radius);
  text-align: center;
  background: rgba(246, 247, 251, 0.82);
}

.leaderboard {
  display: grid;
  gap: 26px;
}

.recommendation-group {
  display: grid;
  gap: 14px;
}

.recommendation-group-title {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(30, 34, 50, 0.12);
}

.recommendation-group-title > div:first-child {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.recommendation-group-title h2 {
  max-width: 780px;
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(1.45rem, 5vw, 2.5rem);
  overflow-wrap: anywhere;
}

.recommendation-group-summary {
  max-width: 720px;
  color: var(--muted);
  font-size: 0.95rem;
}

.recommendation-group-meta {
  display: grid;
  gap: 10px;
  justify-items: end;
  flex: 0 0 auto;
}

.recommendation-group-title span {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(114, 87, 255, 0.18);
  border-radius: 999px;
  color: #4f3bd3;
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(114, 87, 255, 0.08);
}

.recommendation-group-toggle {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 800;
  background: transparent;
}

.recommendation-group-toggle:hover {
  color: var(--accent-2);
}

.recommendation-group-items {
  display: grid;
  gap: 14px;
}

.recommendation-group-items.hidden {
  display: none;
}

.recommendations-preview {
  padding-top: 0;
  padding-bottom: 52px;
}

.recommendation-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mini-rec-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: 180ms ease;
}

.mini-rec-card img {
  width: 96px;
  height: 82px;
  border-radius: var(--radius);
  object-fit: cover;
}

.mini-rec-card h3 {
  margin-top: 8px;
  font-size: 1rem;
}

.mini-rec-card p {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-number.compact {
  display: inline-grid;
  width: auto;
  height: auto;
  min-width: 38px;
  padding: 5px 8px;
  font-size: 0.78rem;
}

.ranking-row {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(248, 249, 252, 0.86);
  cursor: pointer;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms ease, border-color 200ms ease;
  overflow: hidden;
}

.ranking-row:hover {
  transform: translateY(-6px);
  border-color: rgba(114, 87, 255, 0.28);
  box-shadow: 0 26px 80px rgba(32, 37, 58, 0.18);
}

.ranking-row:focus-visible,
.ranking-row.is-focused {
  border-color: rgba(114, 87, 255, 0.42);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 70px rgba(114, 87, 255, 0.14);
  outline: none;
}

.ranking-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--soft);
}

.ranking-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.ranking-row:hover .ranking-image {
  transform: scale(1.08);
}

.ranking-rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
  background: linear-gradient(135deg, rgba(114, 87, 255, 0.94), rgba(94, 180, 255, 0.88));
  box-shadow: 0 8px 24px rgba(114, 87, 255, 0.28);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.ranking-copy {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 14px;
  min-width: 0;
}

.ranking-header {
  display: grid;
  gap: 8px;
}

.ranking-title-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.ranking-row h3 {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.22rem);
  line-height: 1.2;
  color: var(--text);
  overflow-wrap: anywhere;
}

.ranking-row p,
.mini-rec-card h3,
.mini-rec-card p {
  overflow-wrap: anywhere;
}

.recommendation-description {
  font-size: clamp(0.88rem, 1.5vw, 0.95rem);
  color: var(--muted);
  line-height: 1.55;
}

.ranking-row p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.ranking-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(30, 34, 50, 0.08);
}

.rating-track {
  flex: 1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.rating-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 400ms ease;
}

.rating-value {
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 800;
  font-size: clamp(0.85rem, 1.5vw, 0.9rem);
  min-width: 45px;
  text-align: right;
}

.recommendation-description {
  font-size: 1rem;
}

.recommendation-description ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.recommendation-description li {
  padding-left: 2px;
}

.archive-list {
  display: grid;
  gap: 16px;
}

.archive-group {
  padding: 20px;
}

.archive-group h2 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 1.2rem;
}

.archive-group ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-group a {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(246, 247, 251, 0.82);
  transition: 160ms ease;
}

.archive-group a:hover {
  color: var(--accent);
  background: #f8f9fc;
}

.post-view {
  max-width: 860px;
  margin: 40px auto 90px;
}

.post-view img {
  width: 100%;
  max-height: 520px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.post-view h1 {
  margin: 24px 0 14px;
  font-size: clamp(2.2rem, 8vw, 4.4rem);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
}

.post-content {
  color: #252836;
  font-size: 1.05rem;
  line-height: 1.85;
}

.post-content h2,
.post-content h3 {
  margin: 28px 0 10px;
  font-family: Poppins, Inter, sans-serif;
}

.post-content p {
  margin: 0 0 18px;
}

.admin-shell {
  padding-bottom: 80px;
}

.admin-header h1 {
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(1.8rem, 6vw, 3.4rem);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.admin-card {
  padding: 22px;
}

.admin-note {
  padding-block: 14px;
}

.admin-note .helper-text {
  margin: 0;
}

.admin-card h2 {
  font-size: 1.35rem;
}

.admin-list-card {
  grid-column: 1 / -1;
}

.stacked-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #f8f9fc;
  outline: none;
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
  line-height: 1.55;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(114, 87, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(114, 87, 255, 0.1);
}

.helper-text {
  margin: 0 0 18px;
}

.form-message {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--accent);
  font-weight: 800;
}

.form-message.error {
  color: var(--danger);
}

.draft-panel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.management-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.management-columns h3 {
  margin: 0 0 10px;
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(246, 247, 251, 0.84);
}

.admin-list-item h4 {
  margin: 0 0 4px;
}

.admin-list-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

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

.admin-recommendation-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(248, 249, 252, 0.92), rgba(232, 237, 248, 0.7)),
    radial-gradient(circle at 100% 0%, rgba(114, 87, 255, 0.1), transparent 14rem);
}

.admin-recommendation-group header {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.admin-recommendation-group h3 {
  margin: 0;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.admin-recommendation-group header span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(114, 87, 255, 0.16);
  border-radius: 999px;
  color: #4f3bd3;
  font-size: 0.75rem;
  font-weight: 900;
  background: rgba(114, 87, 255, 0.08);
}

.admin-recommendation-items {
  display: grid;
  gap: 8px;
}

.admin-recommendation-item {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  padding: 10px;
  background: rgba(255, 255, 255, 0.62);
}

.admin-recommendation-item img {
  width: 64px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--soft);
}

.danger-button {
  border-color: rgba(201, 53, 75, 0.26);
  color: var(--danger);
}

.hidden {
  display: none !important;
}

.reveal-card {
  animation: cardIn 320ms ease both;
}

@keyframes cardIn {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

@media (max-width: 920px) {
  .blog-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .blog-grid .post-card,
  .featured-post-card {
    grid-column: span 3;
  }

  .recommendation-group {
    gap: 12px;
  }

  .recommendation-strip {
    grid-template-columns: 1fr;
  }

  .recommendation-group-title {
    align-items: start;
    flex-direction: column;
  }

  .recommendation-group-meta {
    justify-items: start;
  }

  .ranking-actions {
    justify-items: start;
  }
}

@media (max-width: 1100px) {
  .mini-rec-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .mini-rec-card img {
    width: 84px;
    height: 76px;
  }
}

@media (max-width: 640px) {
  .site-shell,
  .admin-shell {
    width: min(100% - 22px, 1120px);
  }

  .public-header,
  .admin-header,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .public-nav {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .public-nav a {
    justify-content: center;
    text-align: center;
  }

  .public-nav a:not(:last-child)::after {
    display: none;
  }

  .home-hero,
  .page-hero,
  .simple-page-heading {
    padding: 20px 0 28px;
  }

  .page-hero h1 {
    font-size: 1.95rem;
    overflow-wrap: anywhere;
  }

  .simple-page-heading h1 {
    font-size: 1.9rem;
  }

  .image-page-hero {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .image-page-hero > * {
    min-width: 0;
  }

  .image-page-hero img {
    border-radius: 16px;
  }

  .page-hero::before {
    inset-inline: 0;
  }

  .image-page-hero::before {
    inset-inline: 0;
  }

  .hero-art,
  .hero-art img {
    min-height: 460px;
  }

  .hero-art::after {
    background:
      linear-gradient(0deg, rgba(246, 247, 251, 0.94), rgba(246, 247, 251, 0.58) 45%, rgba(246, 247, 251, 0.08)),
      linear-gradient(0deg, rgba(17, 17, 31, 0.3), transparent 44%);
  }

  .hero-glass {
    inset-inline: 12px;
    bottom: 12px;
    width: auto;
    padding: 10px;
    border-radius: 16px;
  }

  .blog-grid,
  .form-row,
  .management-columns,
  .post-tools {
    grid-template-columns: 1fr;
  }

  .trust-page {
    padding: 20px;
  }

  .blog-grid .post-card,
  .featured-post-card {
    grid-column: span 1;
  }

  .post-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .recommendation-group-title {
    align-items: start;
    flex-direction: column;
  }

  .recommendation-group-meta {
    width: 100%;
  }

  .ranking-row {
    grid-template-columns: 1fr;
  }

  .ranking-media {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 16rem);
    max-width: 16rem;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .ranking-copy {
    grid-column: 1 / -1;
  }

  .rank-number {
    width: fit-content;
    min-width: 52px;
  }

  .ranking-actions {
    grid-column: 1 / -1;
  }

  .archive-group a {
    grid-template-columns: 1fr;
  }

  .admin-list-item {
    grid-template-columns: 1fr;
  }

  .admin-recommendation-group header {
    align-items: start;
    flex-direction: column;
  }

  .admin-recommendation-item {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .admin-recommendation-item .item-actions {
    grid-column: 1 / -1;
  }
}
