/* ==========================================================================
   光棍影院1111 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --bg: #f7f6f3;
  --ink: #1f1f1f;
  --ink-soft: #5c5c5c;
  --accent: #d94f2b;
  --accent-2: #2b6f7a;
  --line: #d8d5cf;
  --line-strong: #b9b5ad;
  --block: #ece9e3;
  --paper: #ffffff;
  --radius: 6px;
  --shell: 1120px;
  --font-sans: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

dl {
  margin: 0;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  padding: 2px 6px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
}

.brand-sub {
  font-size: 13px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius);
  border: 1px solid transparent;
  white-space: nowrap;
}

.nav-link:hover {
  text-decoration: none;
  border-color: var(--line-strong);
  background: var(--paper);
}

.nav-link.is-current {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--paper);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 18px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 20px 0 28px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 40px;
}

.page-title {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: 0;
}

.page-description {
  margin-top: 12px;
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 15px;
}

.site-footer {
  background: var(--ink);
  color: #e8e6e1;
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

.footer-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.footer-desc {
  margin-top: 10px;
  font-size: 14px;
  color: #b6b2ab;
  max-width: 380px;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: none;
  margin-bottom: 12px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.footer-list a {
  color: #cfccc6;
}

.footer-list a:hover {
  color: #fff;
}

.footer-note {
  font-size: 14px;
  color: #b6b2ab;
  max-width: 320px;
}

.footer-copy {
  max-width: var(--shell);
  margin: 36px auto 0;
  padding-top: 18px;
  border-top: 1px solid #3a3833;
  font-size: 13px;
  color: #8f8b84;
}

/* --------------------------------------------------------------------------
   layout · section 通用
   -------------------------------------------------------------------------- */

.section {
  margin-bottom: 56px;
}

.section-head {
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  line-height: 1.3;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}

.section-desc {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 780px;
}

.section-lead,
.section-intro {
  margin-top: 10px;
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 780px;
}

.section-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   components · 按钮
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #bd4020;
  border-color: #bd4020;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

/* --------------------------------------------------------------------------
   components · 图片容器
   -------------------------------------------------------------------------- */

.hero-media,
.content-media,
.channel-figure,
.playlist-media,
.section-media,
.field-figure,
.path-figure {
  background: var(--block);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-media img,
.content-media img,
.channel-figure img,
.playlist-media img,
.section-media img,
.field-figure img,
.path-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-media figcaption,
.content-media figcaption,
.channel-figure figcaption,
.playlist-media figcaption,
.section-media figcaption,
.field-figure figcaption,
.path-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   components · 频道行（首页 / 频道分类页）
   -------------------------------------------------------------------------- */

.channel-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.channel-row {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}

.channel-row:hover {
  background: var(--paper);
}

.channel-name {
  font-size: 18px;
}

.channel-scope,
.channel-focus {
  font-size: 15px;
  color: var(--ink-soft);
}

.channel-fit,
.channel-scene {
  font-size: 14px;
  color: var(--ink-soft);
}

.channel-count {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--accent-2);
}

.channel-link,
.channel-enter {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  white-space: nowrap;
}

.channel-link:hover,
.channel-enter:hover {
  text-decoration: none;
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   components · 专题片单卡
   -------------------------------------------------------------------------- */

.collection-grid,
.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.collection-card,
.playlist-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.collection-card:hover,
.playlist-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(31, 31, 31, 0.06);
}

.collection-name,
.playlist-name {
  font-size: 18px;
}

.collection-brief,
.playlist-bg {
  font-size: 14px;
  color: var(--ink-soft);
}

.collection-meta,
.playlist-scope {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  font-size: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.collection-meta dt,
.playlist-scope dt {
  color: var(--ink-soft);
  font-weight: 600;
}

.collection-meta dd,
.playlist-scope dd {
  color: var(--ink);
}

.collection-link,
.playlist-link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.playlist-media {
  margin: -22px -22px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
}

.playlist-media figcaption {
  padding: 8px 14px;
}

/* --------------------------------------------------------------------------
   components · 字段语义表格
   -------------------------------------------------------------------------- */

.field-table-wrap,
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.field-table {
  min-width: 560px;
  font-size: 14px;
}

.field-table-caption,
.field-table caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.field-table thead th {
  padding: 12px 16px;
  background: var(--block);
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.field-table tbody th {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.field-table tbody td {
  padding: 12px 16px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   components · 查阅步骤（首页 / 查阅路径页）
   -------------------------------------------------------------------------- */

.path-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.path-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-2);
  border-radius: var(--radius);
}

.step-index,
.path-step-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: var(--accent-2);
  border-radius: var(--radius);
}

.step-body {
  min-width: 0;
}

.step-title,
.path-step-title {
  font-size: 18px;
}

.step-text,
.path-step-action {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-soft);
}

.step-result,
.path-step-result {
  margin-top: 8px;
  font-size: 14px;
  color: var(--accent-2);
}

.path-backlink {
  margin-top: 20px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   components · 范围调整记录
   -------------------------------------------------------------------------- */

.log-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.log-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.log-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-2);
}

.log-text {
  font-size: 15px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   components · 收录边界说明
   -------------------------------------------------------------------------- */

.boundary-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.boundary-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.boundary-name {
  font-size: 16px;
  color: var(--accent);
}

.boundary-text,
.boundary-item p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.boundary-note {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--block);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink-soft);
}

.boundary-note a {
  margin-right: 14px;
}

/* --------------------------------------------------------------------------
   components · 条目列表（频道索引 / 片单清单）
   -------------------------------------------------------------------------- */

.channel-groups,
.playlist-entries {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.channel-group,
.entry-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 20px;
}

.channel-group-title,
.entry-group-title {
  font-size: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 14px;
}

.entry-list {
  display: flex;
  flex-direction: column;
}

.entry-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}

.entry-item:last-child {
  border-bottom: 0;
}

.entry-name {
  font-weight: 600;
  color: var(--ink);
}

.entry-meta,
.entry-summary {
  font-size: 14px;
  color: var(--ink-soft);
}

.entry-channel {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--accent-2);
  white-space: nowrap;
}

.entry-summary {
  grid-column: 1 / -1;
}

/* --------------------------------------------------------------------------
   components · 片单查阅顺序
   -------------------------------------------------------------------------- */

.order-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.order-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.order-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 2px 10px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.order-name {
  font-size: 17px;
}

.order-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   components · FAQ 折叠块
   -------------------------------------------------------------------------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 18px;
}

.faq-question {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent);
  flex: 0 0 auto;
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-answer {
  padding: 0 0 16px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   components · 字段阅读示例
   -------------------------------------------------------------------------- */

.example-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
}

.example-head {
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.example-name {
  font-size: 20px;
}

.example-channel {
  margin-top: 6px;
  font-size: 14px;
}

.example-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 13px;
  color: var(--accent-2);
  background: var(--block);
  border-radius: var(--radius);
}

.example-summary {
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-soft);
}

.example-fields {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
  gap: 10px 20px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}

.example-fields dt {
  font-family: var(--font-mono);
  color: var(--accent-2);
}

.example-fields dd {
  color: var(--ink-soft);
}

.example-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.hero {
  padding: 40px 0 32px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 44px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 32px;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-2);
  text-transform: none;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 32px;
  line-height: 1.25;
}

.hero-text {
  margin-top: 16px;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-media {
  min-width: 0;
}

.content-media-primary {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   pages · 频道分类
   -------------------------------------------------------------------------- */

.channel-table-section .channel-row {
  grid-template-columns: minmax(0, 240px) minmax(0, 1.3fr) minmax(0, 1fr) auto auto;
}

.channel-row-main {
  min-width: 0;
}

.channel-index-section .channel-figure {
  margin-bottom: 28px;
}

/* --------------------------------------------------------------------------
   pages · 专题片单
   -------------------------------------------------------------------------- */

.playlist-entries .section-media {
  margin-top: 28px;
}

.playlist-order .section-lead a {
  margin-right: 14px;
}

/* --------------------------------------------------------------------------
   pages · 条目字段说明
   -------------------------------------------------------------------------- */

.field-figure {
  margin-bottom: 24px;
}

.section-boundary .boundary-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.section-example .section-head {
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   pages · 查阅路径
   -------------------------------------------------------------------------- */

.path-section {
  margin-bottom: 56px;
}

.path-figure {
  margin-bottom: 28px;
}

.path-backlink a {
  font-weight: 600;
}

.faq-section,
.log-section {
  margin-bottom: 56px;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px;
}

.error-block {
  max-width: 640px;
  width: 100%;
  padding: 40px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
}

.error-block h1 {
  font-size: 32px;
  line-height: 1.25;
}

.error-lead {
  margin-top: 14px;
  font-size: 16px;
  color: var(--ink-soft);
}

.error-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-soft);
}

.error-list li {
  padding-left: 16px;
  position: relative;
}

.error-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--accent-2);
  border-radius: 50%;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .header-inner {
    padding: 12px 18px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 0 4px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 10px;
    font-size: 16px;
    border-radius: var(--radius);
  }

  .home-main,
  .inner-main {
    padding: 0 18px 56px;
  }

  .hero {
    padding: 28px 0 24px;
    margin-bottom: 36px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    margin-bottom: 26px;
  }

  .hero-title,
  .page-title,
  .error-block h1 {
    font-size: 26px;
  }

  .page-header {
    padding: 16px 0 22px;
    margin-bottom: 30px;
  }

  .section {
    margin-bottom: 44px;
  }

  .section-title {
    font-size: 21px;
  }

  .channel-row,
  .channel-table-section .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 18px 4px;
  }

  .channel-link,
  .channel-enter {
    justify-self: start;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .log-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 10px 14px;
    gap: 12px;
  }

  .brand-mark {
    font-size: 17px;
  }

  .brand-sub {
    font-size: 12px;
  }

  .home-main,
  .inner-main {
    padding: 0 14px 48px;
  }

  .hero-title,
  .page-title,
  .error-block h1 {
    font-size: 24px;
  }

  .hero-actions .btn,
  .error-actions .btn {
    flex: 1 1 auto;
  }

  .collection-grid,
  .playlist-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .collection-meta,
  .playlist-scope,
  .example-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .path-step {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .step-index,
  .path-step-index {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .entry-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-channel {
    white-space: normal;
  }

  .field-table {
    min-width: 480px;
  }

  .error-main {
    padding: 40px 14px;
  }

  .error-block {
    padding: 28px 20px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .site-footer {
    padding: 36px 14px 20px;
  }
}
