:root {
  --paper: #f7f1e7;
  --paper-soft: #fffaf1;
  --ink: #12100d;
  --muted: #746a5e;
  --line: #221f1a;
  --hairline: rgba(18, 16, 13, 0.14);
  --card: rgba(255, 250, 241, 0.88);
  --red: #d71920;
  --red-dark: #9f1116;
  --video: #0c0b0a;
  --shadow: 0 22px 60px rgba(31, 24, 18, 0.12);
  --serif: Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
  --sans: "Avenir Next", "Gill Sans", "Trebuchet MS", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(215, 25, 32, 0.12), transparent 28rem),
    radial-gradient(circle at 96% 12%, rgba(12, 11, 10, 0.08), transparent 24rem),
    linear-gradient(180deg, var(--paper-soft), var(--paper));
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.68;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(18, 16, 13, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 16, 13, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 72%);
}

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

a:hover {
  color: var(--red);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.88);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  border: 3px solid var(--red);
  padding: 4px 12px 6px;
  color: var(--red);
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.brand:hover {
  color: var(--red-dark);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-links a:hover {
  background: rgba(18, 16, 13, 0.07);
  color: var(--ink);
  transform: translateY(-1px);
  text-decoration: none;
}

.nav-links .nav-cta {
  background: var(--ink);
  color: var(--paper-soft);
}

.nav-links .nav-cta:hover {
  background: var(--red);
  color: #fff;
}

.page-shell {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 42px auto 0;
}

.hero,
.card,
.form-card,
.detail,
.list-item {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  margin-bottom: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: stretch;
  border-width: 3px 1px;
  padding: clamp(24px, 5vw, 58px);
}

.editorial-cover {
  position: relative;
  overflow: hidden;
}

.editorial-cover::after {
  content: "";
  position: absolute;
  right: clamp(18px, 4vw, 42px);
  top: 0;
  width: 8px;
  height: 100%;
  background: var(--red);
}

.hero-copy,
.hero-panel,
.detail-header,
.page-heading,
.form-page {
  position: relative;
  z-index: 1;
}

.hero h1,
.page-heading h1,
.detail h1,
.form-page h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.hero h1 {
  max-width: 860px;
  font-size: clamp(52px, 10vw, 138px);
}

.deck {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.45;
}

.kicker,
.eyebrow,
.issue-label {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-panel {
  min-height: 260px;
  align-self: end;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  border-left: 1px solid var(--line);
  padding: 28px 28px 0;
}

.hero-panel strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
}

.content-section {
  margin-top: 40px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin: 0 0 18px;
  border-top: 3px solid var(--line);
  padding-top: 16px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.section-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.section-link:hover {
  background: var(--ink);
  color: var(--paper-soft);
  text-decoration: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.video-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.story-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(31, 24, 18, 0.16);
}

.card-body {
  padding: 20px;
}

.card h3,
.list-item h2,
.list-item h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.card h3 {
  font-size: 27px;
}

.card p,
.list-item p {
  margin-bottom: 0;
}

.thumb-wrap,
.mini-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--video);
  color: var(--paper-soft);
}

.thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--video);
  transition: transform 240ms ease, opacity 240ms ease;
}

.card:hover .thumb {
  transform: scale(1.035);
  opacity: 0.88;
}

.placeholder-thumb {
  display: grid;
  place-items: center;
  min-height: 160px;
  color: rgba(255, 250, 241, 0.52);
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

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

.page-heading {
  margin-bottom: 28px;
  border-bottom: 3px solid var(--line);
  padding-bottom: 24px;
}

.page-heading h1 {
  font-size: clamp(56px, 9vw, 116px);
}

.feed-grid {
  display: grid;
  gap: 16px;
}

.list-item {
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(31, 24, 18, 0.12);
}

.list-item h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.compact {
  padding: 16px 18px;
}

.video-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.mini-thumb {
  aspect-ratio: 16 / 9;
}

.mini-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mini-thumb span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 250, 241, 0.58);
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.detail {
  padding: clamp(22px, 4vw, 44px);
}

.detail-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  padding-bottom: 18px;
}

.detail h1 {
  font-size: clamp(42px, 7vw, 92px);
}

.article-detail {
  max-width: 920px;
  margin: 0 auto;
}

.cover {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border: 1px solid var(--line);
  margin: 22px 0;
}

.theater {
  margin: calc(clamp(22px, 4vw, 44px) * -1) calc(clamp(22px, 4vw, 44px) * -1) 30px;
  padding: clamp(12px, 2vw, 24px);
  background:
    radial-gradient(circle at 70% 0%, rgba(215, 25, 32, 0.24), transparent 32rem),
    var(--video);
}

.player {
  width: 100%;
  max-height: 68vh;
  display: block;
  border: 1px solid rgba(255, 250, 241, 0.18);
  background: #000;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

.body-text {
  color: #252018;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.82;
}

.article-detail .body-text p:first-child::first-letter {
  float: left;
  margin: 10px 10px 0 0;
  color: var(--red);
  font-size: 4.8em;
  font-weight: 900;
  line-height: 0.78;
}

.post-gallery {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.gallery-item {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.gallery-item figcaption {
  border-top: 1px solid var(--hairline);
  padding: 9px 11px;
  color: var(--muted);
  font-size: 14px;
}

.comments-panel {
  max-width: 920px;
  margin: 26px auto 0;
  border: 1px solid var(--line);
  border-top-width: 3px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--card);
  box-shadow: var(--shadow);
}

.video-detail + .comments-panel {
  max-width: none;
}

.comments-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.comments-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.comments-head span {
  color: var(--muted);
  font-weight: 900;
  white-space: nowrap;
}

.comment-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.comment-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 14px;
}

.comment-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.comment-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-soft);
  font-weight: 900;
}

.comment-meta {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 14px;
}

.comment-meta strong {
  color: var(--ink);
}

.comment-body {
  color: #252018;
}

.comment-actions {
  margin-top: 8px;
}

.comment-delete {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--red);
  font: 900 13px/1 var(--sans);
  cursor: pointer;
}

.comment-delete:hover {
  color: var(--red-dark);
  text-decoration: underline;
}

.comment-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.comment-form textarea {
  min-height: 110px;
}

.comment-login {
  margin: 20px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
}

.review-panel {
  display: grid;
  gap: 14px;
}

.review-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  padding: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.review-item h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.review-item form {
  flex: 0 0 auto;
}

.reset-link-item {
  align-items: flex-start;
}

.request-note {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.reset-link {
  display: block;
  max-width: min(760px, 76vw);
  margin-top: 12px;
  border: 1px solid var(--line);
  padding: 11px 12px;
  overflow-x: auto;
  background: var(--paper-soft);
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

.user-list-head {
  margin-top: 34px;
}

.user-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.user-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.user-table th,
.user-table td {
  border-bottom: 1px solid var(--hairline);
  padding: 13px 14px;
  text-align: left;
  vertical-align: middle;
}

.user-table th {
  border-bottom-color: var(--line);
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.status-pill,
.self-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--paper-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.self-tag {
  margin-left: 6px;
  color: var(--red);
}

.status-active {
  background: #edf7ee;
}

.status-inactive {
  background: #fff0ed;
  color: var(--red-dark);
}

.role-super {
  background: var(--ink);
  color: var(--paper-soft);
}

.role-staff {
  background: #fff1bb;
}

.review-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.button.tiny,
.btn.tiny {
  padding: 8px 11px;
  font-size: 12px;
}

.muted-action {
  color: var(--muted);
}

.danger-zone .form-card {
  border: 2px solid var(--red);
}

.danger-zone h2 {
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 58px);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.delete-summary {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding-left: 20px;
  color: var(--ink);
  font-weight: 900;
}

.danger-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 11px 17px;
  background: var(--ink);
  color: var(--paper-soft);
  font: 900 14px/1 var(--sans);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover,
.btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

.button.secondary,
.btn.secondary {
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover,
.btn.secondary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-soft);
}

.btn.danger {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.btn.danger:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.form-page {
  max-width: 760px;
  margin: 0 auto;
}

.form-card {
  margin-top: 20px;
  padding: 28px;
}

.form-card p {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-link {
  margin: 16px 0 0;
  font-weight: 900;
}

label {
  font-weight: 900;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 11px 12px;
  background: rgba(255, 250, 241, 0.92);
  color: var(--ink);
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(215, 25, 32, 0.18);
  border-color: var(--red);
}

textarea {
  min-height: 190px;
}

.messages {
  margin-bottom: 20px;
}

.message {
  border: 1px solid var(--line);
  border-left: 7px solid var(--red);
  padding: 13px 15px;
  background: var(--paper-soft);
  box-shadow: 0 12px 36px rgba(31, 24, 18, 0.08);
  font-weight: 800;
}

.empty {
  color: var(--muted);
}

.pagination {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  border: 1px solid var(--line);
  padding: 8px 12px;
  background: var(--paper-soft);
  font-weight: 900;
}

.pagination a:hover {
  background: var(--ink);
  color: var(--paper-soft);
  text-decoration: none;
}

.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 70px auto 28px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .topbar-inner {
    width: min(100% - 28px, 1180px);
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .page-shell {
    width: min(100% - 28px, 1180px);
    margin-top: 26px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .editorial-cover::after {
    width: 100%;
    height: 6px;
    top: auto;
    right: 0;
    bottom: 0;
  }

  .hero-panel {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0 0;
  }

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

@media (max-width: 560px) {
  .brand {
    font-size: 22px;
    letter-spacing: -0.045em;
  }

  .nav-links a {
    padding: 7px 10px;
  }

  .hero,
  .detail,
  .list-item,
  .form-card {
    padding: 18px;
  }

  .theater {
    margin: -18px -18px 22px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-item {
    align-items: flex-start;
    flex-direction: column;
  }
}
