:root {
  --bg: #f7f5f2;
  --bg-elevated: #ffffff;
  --ink: #23201d;
  --ink-soft: #6b645d;
  --accent: #b4791f;
  --accent-dark: #8f5e12;
  --line: #e2ddd6;
  --zebra: #fbfaf8;
  --radius: 8px;
  --radius-sm: 6px;
  --container: 1120px;
  --shell-gap: 32px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  --shadow-card: 0 1px 2px rgba(35, 32, 29, 0.04);
  --shadow-card-hover: 0 6px 18px rgba(35, 32, 29, 0.09);
}

/* =========================================================
   base
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* =========================================================
   layout
   ========================================================= */

.site-header {
  background-color: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand-name {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.brand-slogan {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.3;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background-color: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  background-color: var(--bg);
  color: var(--accent-dark);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--accent-dark);
  font-weight: 600;
  background-color: var(--bg);
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.site-footer {
  background-color: var(--bg-elevated);
  border-top: 1px solid var(--line);
  margin-top: 48px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.footer-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.footer-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-list a {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px 28px;
  border-top: 1px solid var(--line);
}

.footer-copy {
  font-size: 13px;
  color: var(--ink-soft);
}

/* =========================================================
   components
   ========================================================= */

.section {
  margin-top: 56px;
}

.section:first-child {
  margin-top: 0;
}

.section-head {
  margin-bottom: 20px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.section-desc,
.section-intro,
.section-lead {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 780px;
}

.section-foot {
  margin-top: 16px;
  font-size: 14px;
}

.section-note,
.section-footnote {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
}

.text-link {
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(180, 121, 31, 0.35);
  padding-bottom: 1px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-elevated);
}

.data-table {
  width: 100%;
  min-width: 640px;
  font-size: 14px;
  line-height: 1.6;
}

.table-caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background-color: var(--zebra);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 12px 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table tbody tr:nth-child(even) td {
  background-color: var(--zebra);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.col-code,
.cell-code,
.cell-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.cell-name {
  font-weight: 600;
}

.cell-field {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-dark);
}

.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-sm);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--accent-dark);
  border-color: var(--accent);
  background-color: var(--bg-elevated);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 12px;
}

.page-description {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 780px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--shell-gap);
  align-items: start;
}

.page-layout.sidebar-left {
  grid-template-columns: 260px minmax(0, 1fr);
}

.page-content {
  min-width: 0;
}

.page-aside,
.page-sidebar {
  background-color: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 88px;
}

.aside-title,
.sidebar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.aside-title + .aside-nav,
.aside-title + nav {
  margin-bottom: 20px;
}

.aside-nav,
.sidebar-nav-block {
  margin-bottom: 16px;
}

.aside-list,
.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aside-list a,
.sidebar-list a {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.aside-list a:hover,
.aside-list a:focus-visible,
.sidebar-list a:hover,
.sidebar-list a:focus-visible {
  background-color: var(--bg);
  color: var(--accent-dark);
  text-decoration: none;
}

.aside-note,
.sidebar-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.aside-figure {
  margin: 16px 0 0;
}

.aside-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--bg);
}

.aside-figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.content-figure,
.section-media,
.scene-figure,
.hero-figure {
  margin: 0;
}

.content-figure img,
.section-media img,
.scene-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  background-color: var(--bg);
}

.content-figure figcaption,
.section-media figcaption,
.scene-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.data-table a {
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(180, 121, 31, 0.35);
}

.data-table a:hover,
.data-table a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* =========================================================
   pages — index
   ========================================================= */

.site-notice {
  background-color: #efe9df;
  border-bottom: 1px solid var(--line);
}

.site-notice p {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 24px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.home-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.hero-section {
  margin-bottom: 8px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.hero-intro {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--accent-dark);
  background-color: #f3ebdc;
  border: 1px solid #e6d8bd;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 18px;
  max-width: 560px;
}

.hero-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.hero-points li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  min-width: 0;
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: var(--bg);
}

.hero-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.scene-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.scene-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.scene-card:hover {
  transform: translateY(-2px);
  border-color: #d6cec2;
  box-shadow: var(--shadow-card-hover);
}

.scene-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.scene-card-meta {
  font-size: 13px;
  color: var(--accent-dark);
}

.scene-card-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  flex: 1 1 auto;
}

.scene-card-link {
  font-size: 14px;
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(180, 121, 31, 0.35);
  align-self: flex-start;
  padding-bottom: 1px;
}

.scene-card-link:hover,
.scene-card-link:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.playlist-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.playlist-card:hover {
  transform: translateY(-2px);
  border-color: #d6cec2;
  box-shadow: var(--shadow-card-hover);
}

.playlist-media {
  margin: 0;
}

.playlist-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: var(--bg);
}

.playlist-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  flex: 1 1 auto;
}

.playlist-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.playlist-scope {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.playlist-channel {
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.playlist-link {
  margin-top: auto;
  font-size: 14px;
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(180, 121, 31, 0.35);
  align-self: flex-start;
  padding-bottom: 1px;
}

.playlist-link:hover,
.playlist-link:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.field-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.field-column {
  background-color: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.field-subtitle {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.field-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-dark);
}

.field-value {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.field-list .field-value:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.field-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boundary-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--line);
}

.notes-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.notes-group {
  background-color: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}

.notes-month {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notes-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  line-height: 1.7;
}

.notes-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

.notes-type {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  color: var(--accent-dark);
  background-color: #f3ebdc;
  border: 1px solid #e6d8bd;
  border-radius: 999px;
}

.notes-scope {
  flex: 1 1 140px;
  color: var(--ink-soft);
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.index-cell {
  background-color: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.index-cell:hover {
  border-color: #d6cec2;
  box-shadow: var(--shadow-card-hover);
}

.index-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.index-title a {
  color: var(--ink);
  text-decoration: none;
}

.index-title a:hover,
.index-title a:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
}

.index-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* =========================================================
   pages — scenes
   ========================================================= */

.section-judge .judge-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.judge-item {
  background-color: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}

.judge-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.judge-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.section-scene-blocks .scene-block {
  background-color: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 20px;
  min-width: 0;
}

.scene-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.scene-block-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.scene-block-meta {
  font-size: 13px;
  color: var(--accent-dark);
}

.scene-figure {
  margin: 0 0 14px;
}

.scene-figure img {
  aspect-ratio: 16 / 9;
}

.scene-block-text {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 14px;
}

.scene-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.scene-links a {
  font-size: 14px;
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(180, 121, 31, 0.35);
  padding-bottom: 1px;
}

.scene-links a:hover,
.scene-links a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.next-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.next-col {
  background-color: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.next-col-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.next-col-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.next-col-link {
  margin-top: 10px;
  font-size: 14px;
}

.next-col-link a {
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(180, 121, 31, 0.35);
}

.next-col-link a:hover,
.next-col-link a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* =========================================================
   pages — channels
   ========================================================= */

.section-media {
  margin: 18px 0 0;
}

.section-media img {
  aspect-ratio: 16 / 9;
}

.section-channel-table .table-scroll {
  margin-top: 18px;
}

.field-table {
  min-width: 560px;
}

.channel-scene-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.channel-scene-col {
  background-color: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.subsection-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.channel-scene-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.channel-scene-item {
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.channel-scene-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.channel-scene-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.channel-scene-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.channel-scene-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 6px;
}

.channel-scene-links a {
  font-size: 13px;
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(180, 121, 31, 0.35);
}

.channel-scene-links a:hover,
.channel-scene-links a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* =========================================================
   pages — playlist
   ========================================================= */

.playlist-entries,
.playlist-detail,
.playlist-mapping {
  margin-top: 40px;
}

.playlist-entries:first-child,
.playlist-detail:first-child,
.playlist-mapping:first-child {
  margin-top: 0;
}

.playlist-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.playlist-cover {
  margin: 0;
}

.playlist-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background-color: var(--bg);
}

.playlist-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  padding: 14px 16px 0;
}

.playlist-card-scope {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  padding: 8px 16px 0;
}

.playlist-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 16px 0;
  font-size: 12px;
  color: var(--ink-soft);
}

.playlist-card-meta li {
  font-family: var(--font-mono);
}

.playlist-card-link {
  display: inline-block;
  margin: 12px 16px 16px;
  font-size: 14px;
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(180, 121, 31, 0.35);
  align-self: flex-start;
}

.playlist-card-link:hover,
.playlist-card-link:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.playlist-block {
  background-color: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 18px;
  min-width: 0;
}

.playlist-block-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.playlist-block-text {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 14px;
}

.playlist-scope-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.playlist-scope-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.playlist-scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.playlist-block-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.playlist-block-links a {
  font-size: 14px;
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(180, 121, 31, 0.35);
}

.playlist-block-links a:hover,
.playlist-block-links a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.playlist-map-table {
  min-width: 640px;
}

.playlist-mapping-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

/* =========================================================
   pages — guide
   ========================================================= */

.content-section {
  margin-top: 44px;
  scroll-margin-top: 90px;
}

.content-section:first-child {
  margin-top: 0;
}

.guide-checklist .content-figure {
  margin: 18px 0 0;
}

.guide-checklist .content-figure img {
  aspect-ratio: 16 / 9;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.check-item {
  background-color: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}

.check-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.check-standard {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.75;
}

.check-note {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.env-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.env-column {
  background-color: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.env-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.env-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.env-item {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.env-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.faq-item {
  background-color: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}

.faq-question {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--accent);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--line);
}

.faq-answer {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.fields-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.fields-column {
  background-color: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.fields-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.fields-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fields-item {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.fields-list .fields-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fields-item .field-name {
  display: block;
  margin-bottom: 2px;
}

/* =========================================================
   pages — notes
   ========================================================= */

.notes-section {
  margin-top: 40px;
}

.notes-section:first-child {
  margin-top: 0;
}

.notes-group {
  margin-top: 22px;
}

.notes-group:first-child {
  margin-top: 0;
}

.notes-table {
  width: 100%;
  min-width: 640px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-elevated);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.notes-table caption {
  caption-side: top;
  text-align: left;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.notes-table thead th {
  text-align: left;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background-color: var(--zebra);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.notes-table tbody td {
  padding: 12px 16px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.7;
}

.notes-table tbody tr:nth-child(even) td {
  background-color: var(--zebra);
}

.notes-table tbody tr:last-child td {
  border-bottom: none;
}

.notes-tag {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.notes-tag-new {
  color: #2f6b3a;
  background-color: #e8f1e9;
  border: 1px solid #cfe0d2;
}

.notes-tag-move {
  color: var(--accent-dark);
  background-color: #f3ebdc;
  border: 1px solid #e6d8bd;
}

.notes-tag-field {
  color: #4a4a7a;
  background-color: #ecebf5;
  border: 1px solid #d8d6ea;
}

.notes-tag-bound {
  color: #7a4a3a;
  background-color: #f5ebe7;
  border: 1px solid #e6d5cd;
}

.type-table {
  min-width: 560px;
}

.split-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.split-col {
  background-color: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-list a {
  font-size: 14px;
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(180, 121, 31, 0.35);
  align-self: flex-start;
}

.related-list a:hover,
.related-list a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* =========================================================
   pages — 404
   ========================================================= */

.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px 72px;
}

.error-panel {
  max-width: 720px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.error-panel h1 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
}

.error-text {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 20px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 24px;
}

.error-link {
  font-size: 14px;
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(180, 121, 31, 0.35);
  padding-bottom: 1px;
}

.error-link:hover,
.error-link:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.error-hint {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.error-hint h2 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.error-hint-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.error-hint-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.error-hint-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--line);
}

/* =========================================================
   responsive
   ========================================================= */

@media (max-width: 960px) {
  .header-inner {
    padding: 12px 20px;
    gap: 16px;
  }

  .nav-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 12px 14px;
    font-size: 15px;
  }

  .inner-main,
  .home-main {
    padding: 24px 20px 56px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-title {
    font-size: 30px;
  }

  .scene-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .playlist-grid,
  .field-layout,
  .next-columns,
  .channel-scene-grid,
  .env-columns,
  .fields-columns,
  .split-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .notes-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .playlist-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-judge .judge-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .page-aside,
  .page-sidebar {
    position: static;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .site-notice p {
    padding: 10px 20px;
  }

  .inner-main,
  .home-main {
    padding: 20px 16px 48px;
  }

  .header-inner {
    padding: 10px 16px;
  }

  .hero-title {
    font-size: 26px;
  }

  .page-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
  }

  .scene-cards,
  .notes-groups,
  .index-grid,
  .playlist-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    margin-top: 40px;
  }

  .content-section {
    margin-top: 32px;
  }

  .playlist-entries,
  .playlist-detail,
  .playlist-mapping,
  .notes-section {
    margin-top: 32px;
  }

  .scene-block,
  .playlist-block,
  .field-column,
  .next-col,
  .channel-scene-col,
  .check-item,
  .env-column,
  .fields-column,
  .split-col,
  .notes-group,
  .page-aside,
  .page-sidebar {
    padding: 16px;
  }

  .error-panel {
    padding: 22px;
  }

  .error-panel h1 {
    font-size: 24px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 16px 20px;
  }

  .footer-bottom {
    padding: 14px 16px 24px;
  }
}
