:root {
  --bg: #0f0f0f;
  --bg-soft: #171717;
  --panel: rgba(20, 20, 20, 0.98);
  --panel-strong: #1f1f1f;
  --panel-light: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f3f3;
  --text-soft: #d0d0d0;
  --text-dim: #9d9d9d;
  --accent: #ff7a1a;
  --accent-soft: #ffb15e;
  --accent-deep: #eb5a00;
  --ok: #7de0a3;
  --warning: #f2bf63;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  --radius: 12px;
  --radius-sm: 8px;
  --wrap: min(1360px, calc(100vw - 28px));
  --font-display: "Oswald", Impact, sans-serif;
  --font-body: "Jost", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #141414 0%, #090909 100%);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
}

body.theme-public {
  --bg: #131313;
  --bg-soft: #171717;
  --panel: #1a1a1a;
  --panel-strong: #1f1f1f;
  --panel-light: rgba(255, 255, 255, 0.025);
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #ece7e1;
  --text-soft: #cbc5bf;
  --text-dim: #9a948d;
  --accent: #d57a3d;
  --accent-soft: #e0a06f;
  --accent-deep: #a95e2d;
  --ok: #83c5a0;
  --shadow: none;
  --wrap: min(1490px, calc(100vw - 18px));
  background:
    linear-gradient(180deg, #141414 0%, #0d0d0d 100%);
}

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

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

code {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(255, 255, 255, 0.025) 48% 52%, transparent 52% 100%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.08));
  opacity: 0.12;
}

.theme-public .site-backdrop {
  display: none;
}

.shell-wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.shell-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(9, 9, 9, 0.97);
  border-bottom: 1px solid var(--line);
}

.theme-public .shell-header {
  background: rgba(14, 14, 14, 0.96);
  backdrop-filter: blur(10px);
}

.topbar,
.subnav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar {
  min-height: 66px;
}

.theme-public .topbar {
  min-height: 58px;
}

.subnav {
  padding: 0 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav::-webkit-scrollbar {
  display: none;
}

.brand,
.admin-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-copy,
.admin-brand div {
  display: grid;
  gap: 3px;
}

.brand-copy strong,
.admin-brand strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand-copy small,
.admin-brand small {
  color: var(--text-dim);
  font-size: 0.86rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-soft));
  color: #fff9f2;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow);
}

.theme-public .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 4px;
}

.searchbar {
  flex: 1;
  display: flex;
  justify-content: center;
}

.presence-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  white-space: nowrap;
}

.presence-pill span {
  color: var(--text-dim);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.presence-pill strong {
  color: var(--ok);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.searchbar input,
.admin-form input,
.admin-form select,
.admin-form textarea,
.locale-switcher select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
}

.searchbar input {
  max-width: 420px;
}

.theme-public .searchbar input {
  max-width: 520px;
  background: rgba(255, 255, 255, 0.03);
}

.searchbar input::placeholder,
.admin-form textarea::placeholder,
.admin-form input::placeholder {
  color: var(--text-dim);
}

.locale-nav,
.admin-topbar-actions,
.hero-actions,
.form-actions,
.admin-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.locale-nav a,
.subnav a,
.pill,
.pill.static {
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 7px 11px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.locale-nav a.active,
.subnav a.active,
.pill,
.btn {
  border-color: transparent;
}

.locale-nav a.active,
.pill,
.btn,
.chip {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #fff7ef;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(235, 90, 0, 0.22);
}

.btn.ghost,
.btn.small {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn.small {
  padding: 9px 12px;
  font-size: 0.9rem;
}

.hero-panel,
.page-intro,
.section-block,
.post-shell,
.admin-card,
.comment-card,
.category-tile {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.theme-public .hero-panel,
.theme-public .page-intro,
.theme-public .section-block,
.theme-public .post-shell,
.theme-public .comments-block {
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.hero-panel,
.page-intro,
.section-block,
.post-shell,
.comments-block,
.admin-card {
  margin: 24px 0;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(290px, 0.8fr);
  gap: 18px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--panel);
}

.feature-hero {
  position: relative;
  margin: 20px 0 10px;
  overflow: hidden;
  border-radius: 12px;
  background: #0e0e0e;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-public .feature-hero {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.feature-hero-stage {
  position: relative;
  overflow: hidden;
  background: #0f0f0f;
}

.feature-hero-launch {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.feature-hero-media {
  display: block;
  aspect-ratio: 16 / 8.3;
  background: #111;
}

.feature-hero-media img,
.feature-hero-media .thumb-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.16) 54%, rgba(0, 0, 0, 0.52) 100%);
}

.feature-hero-kicker,
.feature-hero-meta,
.feature-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.feature-hero-kicker {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
}

.feature-hero-kicker span,
.feature-hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 700;
}

.feature-hero-kicker span {
  background: rgba(0, 0, 0, 0.54);
  color: #f3f3f3;
}

.feature-hero-kicker span:first-child {
  background: #191919;
  color: #fff;
}

.feature-hero-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.feature-hero-play svg {
  width: clamp(70px, 9vw, 104px);
  height: clamp(70px, 9vw, 104px);
  filter: drop-shadow(0 14px 36px rgba(0, 0, 0, 0.42));
}

.feature-hero-play circle {
  fill: rgba(20, 20, 20, 0.64);
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 2;
}

.feature-hero-play path {
  fill: #fff;
}

.feature-hero-panel {
  padding: 18px 22px 20px;
  background: rgba(255, 255, 255, 0.018);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-hero-copy {
  width: 100%;
  max-width: none;
}

.feature-hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: none;
}

.feature-hero h1 a {
  color: #fff;
}

.feature-hero-meta {
  margin-bottom: 10px;
}

.feature-hero-meta span {
  padding: 0;
  min-height: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 600;
}

.feature-hero-pills {
  margin: 0 0 14px;
}

.feature-hero-stage.is-playing .feature-hero-launch {
  display: none;
}

.feature-hero-embed {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.feature-hero-embed iframe,
.feature-hero-embed video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: contain;
}

.hero-panel-compact {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0 0 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.theme-public .hero-panel-compact {
  padding: 0 0 6px;
}

.hero-panel-card,
.reference-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}

.hero-copy h1,
.page-intro h1,
.section-head h2,
.admin-card-head h2,
.admin-topbar h1 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.04;
  text-transform: uppercase;
}

.hero-copy h1,
.page-intro h1 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  max-width: 13ch;
}

.post-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
  max-width: none;
  color: var(--text);
  overflow-wrap: anywhere;
}

.section-head,
.admin-card-head,
.admin-topbar,
.post-meta-row,
.post-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.section-block,
.page-intro,
.post-shell,
.admin-card {
  padding: 18px;
}

.theme-public .section-block,
.theme-public .page-intro,
.theme-public .post-shell {
  padding: 10px 0;
}

.eyebrow,
.mini-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
  font-size: 0.72rem;
  margin: 0 0 10px;
}

.lede,
.section-copy,
.helper-text,
.post-lede,
.category-tile p,
.admin-note p {
  color: var(--text-soft);
  line-height: 1.65;
}

.hero-stat-list,
.reference-list,
.footer-list,
.translation-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-stat-list li,
.reference-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.hero-stat-list li:first-child,
.reference-list li:first-child {
  border-top: 0;
}

.hero-stat-list span,
.reference-list span,
.video-meta,
.video-kicker,
.post-meta-line,
.translation-list,
.footer-list a,
.admin-table small {
  color: var(--text-dim);
}

.section-head a {
  color: var(--accent-soft);
  font-weight: 700;
}

.theme-public .section-head {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.theme-public .section-head h2 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  text-transform: none;
}

.theme-public .section-head a {
  color: var(--text-dim);
  font-size: 0.86rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(206px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.theme-public .card-grid {
  grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
  gap: 14px;
}

.video-card {
  display: grid;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.theme-public .video-card {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.video-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 26, 0.38);
  background: rgba(255, 255, 255, 0.032);
}

.theme-public .video-card:hover {
  transform: none;
  border-color: transparent;
  background: transparent;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 107, 87, 0.18), rgba(255, 184, 143, 0.08));
}

.theme-public .video-thumb {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  background: #232323;
}

.video-thumb img,
.thumb-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-fallback {
  background:
    radial-gradient(circle at center, rgba(255, 184, 143, 0.22), transparent 42%),
    linear-gradient(135deg, rgba(255, 61, 37, 0.18), rgba(255, 255, 255, 0.05));
}

.chip,
.duration {
  position: absolute;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

.theme-public .chip,
.theme-public .duration {
  border-radius: 3px;
  padding: 3px 6px;
  font-size: 0.69rem;
  line-height: 1.1;
}

.chip {
  top: 12px;
  right: 12px;
}

.duration {
  left: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
}

.video-body {
  padding: 12px;
}

.theme-public .video-body {
  padding: 6px 0 0;
}

.video-kicker,
.video-meta,
.post-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
}

.video-title {
  display: block;
  margin: 7px 0 5px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.22;
}

.theme-public .video-title {
  margin: 4px 0 2px;
  font-size: 0.94rem;
  line-height: 1.14;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-excerpt {
  color: var(--text-soft);
  margin: 0 0 10px;
  line-height: 1.4;
  font-size: 0.88rem;
}

.theme-public .video-excerpt {
  display: none;
}

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

.pager a,
.pager span {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.page-intro {
  padding: 22px 24px;
}

.post-meta-row,
.post-meta-line {
  margin-bottom: 16px;
}

.post-top-summary {
  display: grid;
  gap: 8px;
}

.post-taxonomy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.theme-public .post-title {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.08;
}

.theme-public .post-meta-row,
.theme-public .post-meta-line {
  gap: 8px 12px;
  margin-bottom: 0;
}

.theme-public .post-meta-line {
  font-size: 0.84rem;
}

.theme-public .post-lede {
  margin: 0;
  max-width: 1100px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.video-frame {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #000;
  margin: 24px 0;
}

.theme-public .video-frame {
  border: 0;
  border-radius: 0;
  margin: 0 0 12px;
  box-shadow: none;
}

.video-frame iframe,
.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.video-launch,
.video-launch-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.video-launch {
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-launch-trigger {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.video-launch-embed,
.video-launch-trigger img,
.video-launch-trigger .thumb-fallback,
.video-launch-preview {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

.video-launch-embed {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-launch-trigger img,
.video-launch-trigger .thumb-fallback,
.video-launch-preview {
  object-fit: cover;
}

.video-launch-preview {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  background: #000;
}

.video-launch-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0.36) 100%);
}

.video-launch-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.video-launch-play svg {
  width: clamp(72px, 8vw, 106px);
  height: clamp(72px, 8vw, 106px);
  filter: drop-shadow(0 14px 36px rgba(0, 0, 0, 0.42));
}

.video-launch-play circle {
  fill: rgba(20, 20, 20, 0.64);
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 2;
}

.video-launch-play path {
  fill: #fff;
}

.video-launch.is-previewing .video-launch-preview {
  opacity: 1;
}

.video-launch.is-previewing .video-launch-trigger img,
.video-launch.is-previewing .video-launch-trigger .thumb-fallback {
  opacity: 0;
}

.video-launch.is-live .video-launch-trigger {
  opacity: 0;
  pointer-events: none;
}

.video-launch.is-live .video-launch-embed {
  opacity: 1;
}

.video-placeholder {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--text-soft);
  text-align: center;
}

.suggestion-strip {
  margin: 0 0 24px;
}

.theme-public .suggestion-strip {
  margin: 10px 0 18px;
}

.related-grid {
  margin-top: 12px;
}

.related-grid .video-body {
  padding: 10px;
}

.theme-public .related-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.theme-public .related-grid .video-body {
  padding: 6px 0 0;
}

.related-grid .video-title {
  margin-top: 0;
  font-size: 0.92rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  gap: 24px;
}

.theme-public .content-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
  gap: 16px;
}

.editorial-card,
.reference-card,
.comment-card {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  padding: 22px;
}

.theme-public .editorial-card,
.theme-public .reference-card,
.theme-public .comment-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 16px;
}

.rich-copy {
  line-height: 1.65;
  color: var(--text-soft);
}

.rich-copy p:first-child {
  margin-top: 0;
}

.mini-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.mini-block h4 {
  margin: 0 0 12px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill.static {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: var(--line);
}

.translation-list li + li,
.footer-list li + li {
  margin-top: 10px;
}

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

.comment-card small {
  display: block;
  margin: 6px 0 12px;
  color: var(--text-dim);
}

.empty-state {
  padding: 26px;
  border-radius: 18px;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
}

.site-footer {
  padding: 18px 0 36px;
}

.theme-public .site-footer {
  padding: 18px 0 28px;
  background: transparent;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.theme-public .footer-grid {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-utility {
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
}

.theme-public .presence-pill {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.theme-admin {
  background:
    linear-gradient(180deg, #161116 0%, #0e0b10 100%);
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: rgba(8, 7, 10, 0.72);
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-menu {
  display: grid;
  gap: 8px;
  margin: 28px 0;
}

.admin-menu a {
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid transparent;
}

.admin-menu a:hover,
.admin-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.admin-note {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.admin-main {
  padding: 22px;
}

.admin-auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-auth-card {
  width: min(460px, 100%);
  padding: 26px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(8, 7, 10, 0.88);
  box-shadow: var(--shadow);
}

.admin-auth-copy {
  margin: 20px 0 18px;
}

.admin-auth-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-topbar {
  margin-bottom: 18px;
}

.admin-card-head {
  margin-bottom: 20px;
}

.admin-toolbar {
  margin-bottom: 18px;
  justify-content: space-between;
  align-items: center;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

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

.admin-table th {
  color: var(--text-dim);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-table small {
  display: block;
  margin-top: 6px;
}

.path-preview,
.helper-text code {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.flash-success {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(125, 224, 163, 0.1);
  border: 1px solid rgba(125, 224, 163, 0.3);
  color: var(--ok);
}

.flash-error {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 110, 110, 0.12);
  border: 1px solid rgba(255, 110, 110, 0.32);
  color: #ffb1b1;
}

.admin-form {
  display: grid;
  gap: 18px;
}

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

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.compact {
  grid-template-columns: repeat(2, max-content);
}

.admin-form label,
.admin-form fieldset {
  display: grid;
  gap: 8px;
}

.admin-form span,
.checkbox-group legend {
  color: var(--text-soft);
  font-weight: 500;
}

.admin-form textarea {
  min-height: 180px;
  resize: vertical;
}

.checkbox-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.check-chip,
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.check-chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.toggle span {
  color: var(--text);
}

.recaptcha-wrap {
  display: flex;
  align-items: center;
}

.locale-switcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.locale-switcher label {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.category-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-tile {
  padding: 16px;
}

.category-tile small {
  display: block;
  margin-top: 6px;
  color: var(--text-dim);
}

@media (max-width: 1100px) {
  .feature-hero-media {
    aspect-ratio: 16 / 9.2;
  }

  .feature-hero-panel {
    padding: 16px 18px 18px;
  }

  .hero-panel,
  .content-grid,
  .footer-grid,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .page-post > main.shell-wrap {
    width: 100%;
  }

  .topbar {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .searchbar {
    width: 100%;
    order: 3;
  }

  .presence-pill {
    order: 2;
  }

  .searchbar input {
    max-width: none;
  }

  .hero-panel,
  .page-intro,
  .section-block,
  .post-shell,
  .admin-card {
    padding: 22px;
  }

  .theme-public .section-block,
  .theme-public .page-intro,
  .theme-public .post-shell {
    padding: 10px 0;
  }

  .feature-hero {
    margin: 0 0 12px;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .feature-hero-media {
    aspect-ratio: 16 / 11.7;
  }

  .feature-hero-copy {
    max-width: 100%;
  }

  .feature-hero-kicker {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .feature-hero-play svg {
    width: clamp(62px, 18vw, 86px);
    height: clamp(62px, 18vw, 86px);
  }

  .feature-hero-panel {
    padding: 14px 14px 16px;
  }

  .feature-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.22rem, 5.1vw, 1.7rem);
    line-height: 1.04;
  }

  .feature-hero-meta {
    gap: 8px;
    margin-bottom: 10px;
  }

  .feature-hero-meta span {
    font-size: 0.78rem;
  }

  .feature-hero-kicker span {
    min-height: 22px;
    padding: 3px 7px;
    font-size: 0.69rem;
  }

  .feature-hero-pills {
    gap: 6px;
    margin-bottom: 10px;
  }

  .feature-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .feature-hero-embed {
    aspect-ratio: 16 / 11.7;
  }

  .post-shell {
    padding: 16px 0 22px;
    overflow: clip;
  }

  .page-post .post-shell {
    margin: 0;
    padding: 0 0 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

.page-post .post-main {
  display: block;
}

  .post-main > :not(.video-frame):not(.content-grid) {
    padding-inline: 16px;
  }

  .page-post .post-main > :not(.video-frame):not(.content-grid):not(.suggestion-strip) {
    padding-inline: 16px;
  }

  .post-title {
    max-width: none;
    font-size: clamp(1.05rem, 4.3vw, 1.25rem);
    line-height: 1.14;
  }

  .theme-public .post-title {
    font-size: clamp(1.28rem, 5.2vw, 1.56rem);
    line-height: 1.08;
  }

  .post-meta-row,
  .post-meta-line {
    gap: 10px;
    margin-bottom: 0;
  }

  .video-frame {
    width: 100vw;
    max-width: 100vw;
    margin: 8px calc(50% - 50vw) 12px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .page-post .video-frame {
    width: 100vw;
    max-width: 100vw;
    margin: 0 calc(50% - 50vw) 10px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #000;
  }

  .video-frame iframe,
  .video-frame video {
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #000;
  }

  .page-post .video-frame iframe,
  .page-post .video-frame video,
  .page-post .video-placeholder {
    width: 100vw;
    max-width: 100vw;
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 0;
    background: #000;
  }

  .video-launch-play svg {
    width: clamp(62px, 18vw, 88px);
    height: clamp(62px, 18vw, 88px);
  }

  .video-placeholder {
    min-height: 56.25vw;
  }

  .post-top-summary {
    gap: 7px;
  }

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

.theme-public .card-grid,
.theme-public .related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.creator-credit-strip {
  margin: 14px 0 8px;
}

.section-head.compact {
  margin-bottom: 10px;
}

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

.credit-card {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.credit-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.credit-name {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

  .related-grid .video-title {
    font-size: 0.86rem;
    line-height: 1.16;
  }

  .theme-public .video-title,
  .theme-public .related-grid .video-title {
    font-size: 0.88rem;
    line-height: 1.12;
  }

  .content-grid {
    gap: 16px;
    padding-inline: 16px;
  }

  .theme-public .content-grid {
    gap: 12px;
  }

  .editorial-card,
  .reference-card,
  .comment-card {
    padding: 18px;
  }

  .form-grid.two,
  .form-grid.compact {
    grid-template-columns: 1fr;
  }

  .admin-main {
    padding: 18px;
  }
}

.creator-credit-strip {
  margin: 14px 0 8px;
}

.section-head.compact {
  margin-bottom: 10px;
}

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

.credit-card {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.credit-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.credit-name {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
