:root {
  --bg: #fff7ed;
  --paper: #fffaf4;
  --surface: #ffffff;
  --text: #111827;
  --muted: #5f6b7a;
  --line: rgba(17, 24, 39, 0.1);
  --accent: #00a884;
  --accent-strong: #007f68;
  --hot: #ff5a1f;
  --hot-strong: #e63f12;
  --gold: #ffb703;
  --blue: #2563eb;
  --shadow: 0 22px 60px rgba(17, 24, 39, 0.12);
  --wide: 1440px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 183, 3, 0.2), transparent 28%),
    radial-gradient(circle at 82% 0%, rgba(0, 168, 132, 0.14), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

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

main {
  width: 100%;
  overflow-x: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 247, 237, 0.88);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 18px 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #053d36;
  font-size: 24px;
  font-weight: 950;
  white-space: nowrap;
}

.brand img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.18);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  color: #334155;
  font-size: 16px;
  font-weight: 750;
}

nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

nav a span {
  font-size: 17px;
  line-height: 1;
}

nav a:hover,
.section-heading a:hover {
  background: rgba(255, 90, 31, 0.11);
  color: var(--hot-strong);
}

.hero,
.page-title,
.section,
.article,
.admin-hero,
.admin-panel {
  width: min(var(--wide), calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0;
}

.hero {
  padding-top: 42px;
  padding-bottom: 58px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--hot);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  font-size: clamp(54px, 7vw, 104px);
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
}

h3 {
  font-size: 23px;
}

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
}

.primary-link {
  background: linear-gradient(135deg, var(--hot), var(--gold));
  color: #111827;
  box-shadow: 0 16px 32px rgba(255, 90, 31, 0.26);
}

.secondary-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--accent-strong);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
  margin-top: 34px;
}

.hero-stats div {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.06);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: var(--hot);
  font-size: 30px;
  line-height: 1;
}

.hero-stats span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.hero-carousel {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  aspect-ratio: 16 / 9;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 360ms ease;
}

.carousel-slide {
  position: relative;
  display: block;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #ffffff;
}

.carousel-slide::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(8, 13, 30, 0.56) 0%, rgba(8, 13, 30, 0.08) 42%, rgba(8, 13, 30, 0.04) 100%);
  content: "";
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.carousel-badge,
.carousel-copy {
  position: absolute;
  z-index: 2;
}

.carousel-badge {
  top: 34px;
  left: 36px;
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--hot));
  color: #111827;
  font-size: 14px;
  font-weight: 950;
}

.carousel-copy {
  left: 36px;
  bottom: 34px;
  width: min(520px, calc(100% - 72px));
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.14);
  backdrop-filter: blur(14px);
}

.carousel-copy p {
  margin: 0 0 6px;
  color: var(--hot);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
}

.carousel-copy h1 {
  max-width: 520px;
  color: var(--text);
  font-size: clamp(24px, 2.6vw, 38px);
  text-shadow: none;
}

.carousel-dots {
  position: absolute;
  right: 32px;
  bottom: 30px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 28px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.carousel-dots button.is-active {
  background: #facc15;
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  cursor: pointer;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.14);
}

.carousel-prev {
  left: 22px;
}

.carousel-next {
  right: 22px;
}

.section,
.admin-panel {
  border-top: 1px solid var(--line);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.category-card {
  position: relative;
  display: block;
  min-height: 190px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.category-card::after {
  position: absolute;
  right: 24px;
  bottom: 18px;
  color: rgba(255, 90, 31, 0.28);
  font-size: 34px;
  content: "→";
}

.category-card:hover,
.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 90, 31, 0.32);
  box-shadow: 0 20px 42px rgba(17, 24, 39, 0.1);
}

.category-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 90, 31, 0.16);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
  font-size: 30px;
}

.category-meta {
  display: inline-flex;
  position: relative;
  z-index: 1;
  margin-left: 12px;
  color: var(--hot);
  font-size: 13px;
  font-weight: 950;
}

.category-card h3,
.category-card p {
  position: relative;
  z-index: 1;
}

.category-card p,
.post-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section-heading,
.admin-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.admin-heading > div {
  min-width: 0;
}

.section-heading a,
.admin-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--hot-strong);
  font-weight: 900;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  margin-top: 30px;
}

.post-card {
  display: block;
  min-height: 240px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.post-card a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.post-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid var(--line);
}

.post-card h3 {
  margin-top: 18px;
  padding: 0 22px;
}

.post-card p {
  margin-top: 12px;
  padding: 0 22px 24px;
}

.post-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 0;
  color: var(--muted);
  font-size: 13px;
}

.post-topline span {
  color: var(--hot);
  font-weight: 900;
}

.article-meta,
.muted {
  color: var(--muted);
  font-size: 14px;
}

.page-title {
  padding-top: 86px;
  padding-bottom: 64px;
}

.page-title p {
  max-width: 1240px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.85;
}

.article {
  max-width: var(--wide);
  padding-top: 82px;
}

.article > header,
.article > .article-cover,
.article > .content {
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
}

.article h1 {
  max-width: 980px;
  font-size: clamp(36px, 4vw, 58px);
  overflow-wrap: anywhere;
}

.article header {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.article-cover {
  margin: 36px 0 10px;
}

.article-cover img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 20px 46px rgba(17, 24, 39, 0.08);
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.keyword-row a,
.keyword-row span {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.keyword-row a:hover {
  border-color: rgba(255, 90, 31, 0.32);
  background: rgba(255, 90, 31, 0.1);
  color: var(--hot-strong);
}

.content {
  padding-top: 12px;
  font-size: 19px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.video-embed {
  margin: 4px 0 36px;
}

.video-embed__frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 90, 31, 0.18);
  border-radius: 24px;
  background: #101827;
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.14);
}

.video-embed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed__caption {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.content p {
  margin: 23px 0;
}

.content h2 {
  margin-top: 48px;
  padding-top: 6px;
  font-size: 32px;
}

.content h3 {
  margin-top: 34px;
}

.content a {
  color: var(--hot-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content li {
  margin: 8px 0;
}

.content table {
  display: table;
  width: 100%;
  min-width: 920px;
  margin: 26px 0 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.06);
  table-layout: fixed;
  overflow: hidden;
}

.content thead {
  display: table-header-group;
}

.content tbody {
  display: table-row-group;
}

.content th,
.content td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  min-width: 0;
  overflow-wrap: anywhere;
}

.content th:first-child,
.content td:first-child {
  width: 7%;
  text-align: center;
}

.content th:nth-child(2),
.content td:nth-child(2) {
  width: 10%;
  text-align: center;
}

.content th:nth-child(3),
.content td:nth-child(3) {
  width: 18%;
}

.content th:nth-child(4),
.content td:nth-child(4) {
  width: 16%;
}

.content th:nth-child(5),
.content td:nth-child(5) {
  width: 24%;
}

.content th:nth-child(6),
.content td:nth-child(6) {
  width: 25%;
}

.content th {
  background: linear-gradient(135deg, #fff3e4, #fff8ed);
  color: #7c2d12;
  font-size: 16px;
  font-weight: 950;
}

.content td {
  color: #1f2937;
  font-size: 16px;
  line-height: 1.65;
}

.content tr:last-child td {
  border-bottom: 0;
}

.content td:first-child {
  font-weight: 900;
}

.content .app-logo {
  display: block;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  margin: 3px auto 0;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.1);
}

.amazon-pick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 38px;
}

.amazon-pick-card {
  position: relative;
  min-height: 330px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 90, 31, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 213, 64, 0.34), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 237, 0.9));
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.08);
}

.amazon-pick-visual {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff21f, #ff7a1a);
  box-shadow: 0 14px 24px rgba(255, 90, 31, 0.22);
  font-size: 38px;
}

.content .amazon-pick-card h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.25;
}

.content .amazon-pick-card p {
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.65;
}

.content .amazon-pick-card a {
  font-weight: 950;
}

.amazon-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 40px;
}

.content .amazon-link-card {
  display: grid;
  min-height: 156px;
  padding: 18px;
  border: 1px solid rgba(255, 90, 31, 0.2);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 232, 0.88));
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.07);
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.content .amazon-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 90, 31, 0.42);
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.11);
}

.amazon-link-card span,
.amazon-link-card strong,
.amazon-link-card em {
  display: block;
}

.amazon-link-card span {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff21f, #ff7a1a);
  font-size: 28px;
}

.amazon-link-card strong {
  font-size: 18px;
  line-height: 1.25;
}

.amazon-link-card em {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.article-related {
  margin-top: 58px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.article-related h2 {
  font-size: clamp(30px, 3vw, 42px);
}

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

.tag-card {
  display: block;
  min-height: 118px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.tag-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 90, 31, 0.32);
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.1);
}

.tag-card span,
.tag-card strong {
  display: block;
}

.tag-card span {
  color: var(--hot);
  font-size: 13px;
  font-weight: 900;
}

.tag-card strong {
  margin-top: 12px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
}

.seo-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
}

.seo-copy {
  display: grid;
  gap: 16px;
  color: var(--muted);
  font-size: 19px;
}

.seo-copy p {
  margin: 0;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 28px;
  width: min(1680px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 82px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 16px;
}

.admin-sidebar-card,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.07);
}

.admin-sidebar-card {
  padding: 28px;
}

.admin-sidebar-card h1 {
  font-size: clamp(34px, 3.4vw, 52px);
}

.admin-sidebar-card p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
}

.admin-content {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.admin-layout .admin-panel {
  width: 100%;
  margin: 0;
  padding: 28px;
  border-top: 1px solid var(--line);
}

.admin-side-nav {
  display: grid;
  gap: 10px;
  justify-content: stretch;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: 15px;
}

.admin-side-nav a {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(255, 247, 237, 0.58);
  color: #263241;
  font-weight: 900;
}

.admin-side-nav a:hover {
  background: rgba(255, 90, 31, 0.12);
  color: var(--hot-strong);
}

.admin-hero {
  padding-top: 86px;
}

.admin-hero p {
  max-width: 820px;
  color: var(--muted);
  font-size: 20px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.admin-stats div,
.admin-category-grid a {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.admin-stats strong,
.admin-category-grid strong,
.admin-category-grid span {
  display: block;
}

.admin-stats strong {
  color: var(--hot);
  font-size: 26px;
  line-height: 1.05;
}

.admin-stats span,
.admin-category-grid span {
  color: var(--muted);
  font-weight: 800;
}

.admin-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.admin-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-rank-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.admin-rank-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.admin-rank-card h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.admin-rank-card ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rank;
}

.admin-rank-card li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  counter-increment: rank;
}

.admin-rank-card li::before {
  content: counter(rank);
  display: none;
}

.admin-rank-card a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

.admin-rank-card span {
  color: var(--hot);
  font-weight: 950;
  white-space: nowrap;
}

.admin-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.7;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.admin-search-bar {
  display: grid;
  grid-template-columns: auto minmax(260px, 420px);
  gap: 12px;
  align-items: center;
  justify-content: end;
  margin-top: 20px;
}

.admin-search-bar label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 950;
}

.admin-search-bar input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  outline: 0;
}

.admin-search-bar input:focus {
  border-color: rgba(255, 90, 31, 0.42);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.11);
}

.admin-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  font-size: 15px;
}

.admin-table th,
.admin-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #fff3e4;
  color: #7c2d12;
}

.admin-table a {
  color: var(--hot-strong);
  font-weight: 800;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.admin-button,
.admin-mini-button {
  cursor: pointer;
  font: inherit;
}

.admin-mini-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff7ed;
  color: var(--hot-strong);
  font-size: 13px;
  font-weight: 900;
}

.deploy-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--hot), var(--gold));
  color: #111827;
  box-shadow: 0 14px 28px rgba(255, 90, 31, 0.2);
}

.deploy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.deploy-grid a {
  display: grid;
  min-height: 120px;
  align-content: start;
  gap: 9px;
  padding: 20px;
  border: 1px solid rgba(255, 90, 31, 0.16);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 237, 0.86));
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.06);
}

.deploy-grid strong {
  color: var(--text);
  font-size: 18px;
}

.deploy-grid span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.referral-table td[contenteditable="true"] {
  min-width: 160px;
  outline: 0;
}

.referral-table td[contenteditable="true"]:focus {
  background: #fff7ed;
  box-shadow: inset 0 0 0 2px rgba(255, 90, 31, 0.22);
}

.referral-table td[data-field="url"] {
  min-width: 360px;
  word-break: break-all;
}

.admin-json-output {
  width: 100%;
  min-height: 220px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #111827;
  color: #e5e7eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
}

.search-box {
  max-width: 920px;
  margin-top: 28px;
}

.search-box label {
  display: block;
  margin-bottom: 8px;
  color: var(--hot);
  font-size: 13px;
  font-weight: 950;
}

.search-box div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-box input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font: inherit;
  font-size: 18px;
  outline: 0;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.06);
}

.search-box input:focus {
  border-color: rgba(255, 90, 31, 0.46);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.12);
}

.search-box button {
  min-height: 58px;
  padding: 0 24px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--hot), var(--gold));
  color: #111827;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
}

.search-count {
  color: var(--muted);
  font-weight: 900;
}

.search-result-card {
  min-height: 190px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--wide), calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.site-footer strong {
  color: var(--accent-strong);
  font-size: 20px;
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer .affiliate-note {
  max-width: 620px;
  color: #8a4b1d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.site-footer nav {
  justify-content: flex-end;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
  padding: 18px;
  border: 1px solid rgba(255, 90, 31, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.06);
  list-style: none;
}

.page-number,
.page-nav,
.page-status {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.page-number {
  min-width: 44px;
}

.page-nav,
.page-status {
  padding: 0 16px;
}

.page-number.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--hot), var(--gold));
  color: #111827;
  box-shadow: 0 12px 22px rgba(255, 90, 31, 0.18);
}

.page-nav.is-disabled {
  opacity: 0.42;
}

.page-status {
  border-color: rgba(15, 118, 110, 0.14);
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent-strong);
}

@media (max-width: 1180px) {
  .hero {
    padding-top: 52px;
  }

  .post-list,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-category-grid,
  .admin-rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-sidebar {
    position: static;
  }

  .admin-side-nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .admin-side-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-side-nav a {
    flex: 0 0 auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
    overflow: hidden;
  }

  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 14px 16px 12px;
  }

  .brand {
    font-size: 22px;
  }

  nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    font-size: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    flex: 0 0 auto;
    padding: 8px 11px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.72);
  }

  .hero,
  .page-title,
  .section,
  .article,
  .admin-hero,
  .admin-panel,
  .site-footer {
    width: calc(100% - 32px);
  }

  .admin-layout {
    width: calc(100% - 32px);
    padding: 28px 0 52px;
  }

  .admin-layout .admin-panel,
  .admin-sidebar-card {
    padding: 20px;
    border-radius: 22px;
  }

  .hero {
    gap: 28px;
  }

  .hero-carousel {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
  }

  .carousel-slide img {
    object-position: center;
  }

  .carousel-badge {
    top: 20px;
    left: 20px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .carousel-copy {
    display: none;
  }

  .carousel-dots {
    right: 20px;
    bottom: 22px;
  }

  .carousel-control {
    top: auto;
    bottom: 18px;
    width: 40px;
    height: 40px;
    font-size: 30px;
    transform: none;
  }

  .carousel-prev {
    left: 20px;
  }

  .carousel-next {
    right: 72px;
  }

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

  .search-box div {
    grid-template-columns: 1fr;
  }

  .admin-search-bar {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .hero-stats,
  .post-list,
  .category-grid,
  .amazon-pick-grid,
  .amazon-link-grid,
  .tag-grid,
  .seo-band,
  .admin-stats,
  .admin-category-grid,
  .admin-rank-grid,
  .deploy-grid {
    grid-template-columns: 1fr;
  }

  .amazon-pick-card {
    min-height: 0;
    padding: 20px;
    border-radius: 20px;
  }

  .content .amazon-pick-card h3 {
    font-size: 22px;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  h1 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .article h1 {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.16;
  }

  .lead {
    font-size: 18px;
  }

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