:root {
  --paper: #f7f5ef;
  --ink: #1e1e1c;
  --muted: #74716b;
  --line: #d9d3c6;
  --accent: #b01224;
  --panel: #fffdf8;
  --side: #ebe4d6;
}

.theme-orange-1485c {
  --paper: #fff7ef;
  --ink: #191713;
  --muted: #77685c;
  --line: #e6cbb7;
  --accent: #ff6a13;
  --panel: #fffaf4;
  --side: #f3dfc8;
}

.theme-clean {
  --paper: #f7f8f8;
  --ink: #15171a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #0f766e;
  --panel: #ffffff;
  --side: #f0f2f3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  line-height: 1.65;
}

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

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

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

body.side-collapsed .shell {
  grid-template-columns: 44px minmax(0, 1fr);
}

.site-head {
  display: none;
}

.site-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.side {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 100vh;
  padding: 38px 20px 28px;
  border-right: 1px solid var(--line);
  background: var(--side);
}

.side-toggle {
  position: absolute;
  left: 20px;
  bottom: 158px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(30, 30, 28, .35);
  border-radius: 999px;
  background: rgba(255, 253, 248, .55);
  color: var(--ink);
  cursor: pointer;
}

.side-toggle::before {
  content: "←";
  display: block;
  font-size: 15px;
  line-height: 1;
}

.brand {
  display: grid;
  gap: 2px;
  margin-bottom: 36px;
}

.brand-main {
  display: none;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.brand-sub,
.eyebrow,
.muted,
small,
time {
  color: var(--muted);
}

.brand-sub,
.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
}

.nav {
  display: grid;
  gap: 4px;
  margin-top: 34px;
}

.nav a {
  padding: 9px 0;
  border-bottom: 1px solid rgba(30, 30, 28, .13);
  font-weight: 650;
}

.nav a.active,
.nav a:hover {
  color: var(--accent);
}

.calendar-promo {
  position: relative;
  width: 32px;
  margin-top: 7px;
  min-height: 28px;
}

.calendar-promo-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, var(--ink));
  border-radius: 999px;
  background: rgba(255, 253, 248, .42);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.calendar-promo-toggle::before {
  content: none;
}

.calendar-promo-toggle[aria-expanded="true"] {
  color: var(--accent);
  background: var(--panel);
}

.calendar-promo-menu {
  position: absolute;
  left: calc(100% + 12px);
  top: 0;
  width: min(178px, calc(100vw - 40px));
  padding: 8px;
  border: 1px solid rgba(30, 30, 28, .18);
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(30, 30, 28, .12);
  z-index: 5;
}

.calendar-promo-menu a,
.calendar-promo-menu button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.calendar-promo-menu a:hover,
.calendar-promo-menu button:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.calendar-copy-status {
  display: block;
  min-height: 18px;
  padding: 0 10px 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.account {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 52px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

body.side-collapsed .side {
  padding: 16px 7px;
}

body.side-collapsed .side-toggle {
  left: 7px;
  bottom: 88px;
}

body.side-collapsed .side-toggle::before {
  content: "→";
}

body.side-collapsed .side-brand,
body.side-collapsed .nav,
body.side-collapsed .calendar-promo,
body.side-collapsed .account {
  display: none;
}

.account button,
.login-panel button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
}

.content {
  max-width: 980px;
  width: 100%;
  padding: 54px 46px 80px;
}

.site-foot {
  grid-column: 2;
  max-width: 980px;
  width: 100%;
  padding: 0 46px 32px;
  color: var(--muted);
  font-size: 12px;
}

.site-foot a {
  border-bottom: 1px solid rgba(30, 30, 28, .18);
}

.site-foot a:hover {
  color: var(--accent);
  border-bottom-color: currentColor;
}

.wide-page .content {
  max-width: none;
  padding-right: 18px;
}

.wide-page .site-foot,
.archive-page .site-foot {
  max-width: none;
}

.page-title {
  margin-bottom: 30px;
  border-bottom: 3px solid var(--ink);
}

h1 {
  margin: 0 0 16px;
  font-size: 42px;
  line-height: 1.15;
}

h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.pinned-news,
.month-schedule,
.business-summary,
.news-row,
.notice-list article,
.timeline article,
.login-panel {
  background: var(--panel);
  border: 1px solid var(--line);
}

.pinned-news,
.month-schedule,
.business-summary {
  margin-bottom: 28px;
  padding: 20px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 2px 0 0;
}

.schedule-head a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
}

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

.pinned-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.pinned-cover {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.pinned-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pinned-item time,
.news-row time {
  color: var(--muted);
  font-size: 13px;
}

.pinned-item h3 {
  margin: 3px 0 6px;
  font-size: 17px;
  line-height: 1.35;
}

.pinned-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.schedule-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.schedule-list li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  min-width: 0;
  padding: 11px 0 11px 28px;
  border-top: 1px solid rgba(30, 30, 28, .12);
  position: relative;
}

.schedule-list li:first-child {
  border-top: 0;
}

.schedule-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--panel);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent);
}

.schedule-list time {
  color: var(--muted);
  font-size: 14px;
}

.schedule-list strong span {
  margin-left: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.business-table-wrap {
  overflow-x: auto;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  background: var(--paper);
}

.business-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 18px;
}

.business-table th,
.business-table td {
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  text-align: center;
  vertical-align: middle;
}

.business-table thead th {
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
  font-size: 17px;
  font-weight: 760;
}

.business-table th:nth-child(1),
.business-table td:nth-child(1) {
  width: 68px;
}

.business-table th:nth-child(2),
.business-table td:nth-child(2) {
  width: 330px;
}

.business-table th:nth-child(3),
.business-table td:nth-child(3) {
  width: 150px;
  white-space: nowrap;
}

.business-table th:nth-child(4),
.business-table td:nth-child(4) {
  width: 170px;
}

.business-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.news-list,
.notice-list,
.timeline {
  display: grid;
  gap: 12px;
}

.news-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 20px;
}

.news-row p {
  margin: 0;
  color: var(--muted);
}

.article {
  max-width: 760px;
}

.article h1 {
  border-bottom: 3px solid var(--ink);
  padding-bottom: 14px;
}

.lead {
  font-size: 18px;
  color: #4f4b45;
}

.hero-image {
  width: 100%;
  margin: 22px 0;
  border: 1px solid var(--line);
}

.rich-text {
  overflow-wrap: anywhere;
}

.rich-text a {
  color: var(--accent);
  text-decoration: underline;
}

.wiki-profile {
  max-width: 900px;
}

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

.profile-infobox,
.work-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 26px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.profile-infobox th,
.profile-infobox td,
.work-table th,
.work-table td {
  border: 1px solid var(--line);
  padding: 9px 11px;
  vertical-align: top;
}

.profile-infobox th,
.work-table th {
  width: 150px;
  background: color-mix(in srgb, var(--accent) 8%, var(--panel));
  text-align: left;
}

.work-table th {
  width: auto;
}

.wiki-profile h2 {
  margin-top: 30px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--line);
}

.wiki-profile h3 {
  margin: 22px 0 8px;
}

.color-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ff6a13;
  vertical-align: -3px;
}

.timeline article {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 20px;
}

.timeline article.current {
  border-color: var(--accent);
}

.work-grid,
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.interview-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.interview-tabs a {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.interview-tabs a:hover {
  border-color: var(--accent);
}

.interview-tabs strong {
  font-size: 22px;
}

.photo-album-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.photo-album-list a {
  display: grid;
  min-height: 116px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.photo-album-list a:hover {
  border-color: var(--accent);
}

.photo-album-list strong {
  font-size: 22px;
}

.photo-section {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.photo-section:first-of-type {
  margin-top: 0;
}

.photo-section h2 {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  font-weight: 500;
}

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

.photo-card {
  margin: 0;
  min-width: 0;
}

.photo-card a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 3 / 4.35;
  object-fit: cover;
  transition: transform .18s ease;
}

.photo-card[data-category="beisong"][data-number="7"] img {
  object-position: center 42%;
}

.photo-card[data-category="minguo"][data-number="5"] img {
  object-position: center 10%;
}

.photo-card[data-category="minguo"][data-number="7"] img {
  object-position: center top;
}

.photo-card[data-category="minguo"][data-number="9"] img,
.photo-card[data-category="minguo"][data-number="10"] img,
.photo-card[data-category="minguo"][data-number="11"] img,
.photo-card[data-category="minguo"][data-number="12"] img {
  object-position: center top;
}

.photo-card:hover img {
  transform: scale(1.025);
}

.photo-card figcaption {
  padding-top: 6px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.meitan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
}

.meitan-card {
  position: relative;
  min-width: 0;
}

.meitan-card-meta {
  display: none !important;
}

.meitan-card-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
  cursor: pointer;
}

.meitan-card-button:hover {
  border-color: var(--accent);
}

.meitan-number,
.meitan-count,
.meitan-seen {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 3px 9px;
  background: rgb(255 250 244 / .92);
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
}

.meitan-number {
  top: 8px;
  left: 8px;
}

.meitan-count {
  right: 8px;
  bottom: 8px;
}

.meitan-seen {
  top: 8px;
  right: 8px;
  opacity: 0;
  color: var(--accent);
}

.meitan-card.is-viewed .meitan-seen {
  opacity: 1;
}

.meitan-card.is-viewed .meitan-cover {
  filter: saturate(.72);
}

.meitan-cover {
  display: grid;
  aspect-ratio: 3 / 4.18;
  overflow: hidden;
  background: var(--paper);
}

.meitan-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .18s ease;
}

.meitan-cover.is-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2px;
}

.meitan-card-button:hover .meitan-cover img {
  transform: scale(1.025);
}

.meitan-lightbox {
  width: min(1040px, calc(100vw - 28px));
  max-width: none;
  height: min(92vh, 900px);
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}

.meitan-lightbox::backdrop {
  background: rgb(0 0 0 / .82);
}

.meitan-lightbox-figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  margin: 0;
  padding: 24px 58px 22px;
}

.meitan-lightbox-figure img {
  align-self: center;
  justify-self: center;
  max-width: 100%;
  max-height: calc(92vh - 92px);
  object-fit: contain;
  background: rgb(255 255 255 / .04);
  transition: transform .18s ease;
  touch-action: pan-y;
}

.meitan-lightbox-figure figcaption {
  display: flex;
  justify-content: center;
  gap: 12px;
  min-height: 28px;
  margin-top: 10px;
  color: rgb(255 255 255 / .86);
  font-size: 14px;
}

.meitan-lightbox-close,
.meitan-lightbox-nav {
  position: absolute;
  z-index: 2;
  border: 1px solid rgb(255 255 255 / .38);
  background: rgb(0 0 0 / .28);
  color: #fff;
  cursor: pointer;
}

.meitan-lightbox-close {
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  font-size: 28px;
  line-height: 1;
}

.meitan-lightbox-nav {
  top: 50%;
  width: 42px;
  height: 58px;
  transform: translateY(-50%);
  font-size: 42px;
  line-height: .8;
}

.meitan-lightbox-nav.is-prev {
  left: 10px;
}

.meitan-lightbox-nav.is-next {
  right: 10px;
}

.glam-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--panel);
}

.glam-card-list {
  display: none;
}

.glam-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  table-layout: fixed;
}

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

.glam-table th {
  background: color-mix(in srgb, var(--accent) 8%, var(--panel));
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

.glam-table th:nth-child(1),
.glam-table td:nth-child(1) {
  width: 88px;
  white-space: nowrap;
}

.glam-table th:nth-child(2),
.glam-table td:nth-child(2) {
  width: 206px;
}

.glam-table th:nth-child(3),
.glam-table td:nth-child(3) {
  width: 78px;
}

.glam-table th:nth-child(n+4),
.glam-table td:nth-child(n+4) {
  width: 128px;
}

.glam-table strong,
.glam-table small {
  display: block;
}

.glam-table small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.glam-thumb,
.glam-empty {
  width: 78px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
}

.glam-thumb-link {
  display: inline-block;
  width: 78px;
}

.glam-preview-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.glam-preview-dialog::backdrop {
  background: rgb(0 0 0 / 0.62);
}

.glam-preview-dialog img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  background: var(--panel);
}

.glam-preview-dialog p {
  margin: 10px 42px 0 0;
  color: var(--muted);
}

.glam-preview-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.glam-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.glam-card time {
  color: var(--muted);
  font-size: 14px;
}

.glam-card h2 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.45;
}

.glam-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.glam-card-preview {
  justify-self: end;
}

.glam-card-roles {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 7px 12px;
  margin: 2px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.glam-card-roles dt {
  color: var(--muted);
}

.glam-card-roles dd {
  margin: 0;
  min-width: 0;
}

.person-link {
  color: var(--accent);
  font-weight: 650;
  overflow-wrap: anywhere;
  word-break: normal;
}

.person-link:hover {
  text-decoration: underline;
}

.person-sep {
  color: var(--muted);
}

.glam-person-list {
  display: grid;
  gap: 14px;
}

.glam-person-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.glam-person-cover {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.glam-person-cover img,
.glam-person-cover .poster-empty {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.glam-person-card h2 {
  margin: 2px 0 10px;
}

.glam-roles {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 12px;
  margin: 0;
}

.glam-roles dt {
  color: var(--muted);
}

.glam-roles dd {
  margin: 0;
}

.text-link {
  color: var(--accent);
  font-weight: 650;
}

.magazine-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
}

.magazine-card {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.magazine-cover {
  display: block;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.magazine-cover img,
.magazine-cover .poster-empty {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  transition: transform .18s ease;
}

.magazine-card:hover .magazine-cover img {
  transform: scale(1.025);
}

.magazine-caption {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.magazine-caption strong,
.magazine-caption small {
  overflow-wrap: anywhere;
}

.interview-list {
  display: grid;
  gap: 12px;
}

.interview-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.interview-row p {
  margin: 6px 0 0;
  color: var(--muted);
}

.interview-body {
  margin-top: 28px;
  font-size: 17px;
}

.interview-body h2 {
  margin-top: 34px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 24px;
}

.interview-body blockquote {
  margin: 26px 0;
  padding: 16px 20px;
  border-left: 5px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, var(--panel));
  font-size: 18px;
}

.interview-body .text-center {
  text-align: center;
}

.interview-body .article-image {
  margin: 26px auto;
  text-align: center;
}

.interview-body .article-image img {
  width: min(100%, 720px);
  height: auto;
}

.interview-body .article-image figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.scan-section {
  margin-top: 48px;
}

.scan-stack {
  display: grid;
  gap: 22px;
}

.scan-stack figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.scan-stack img {
  width: 100%;
  height: auto;
}

.scan-stack figcaption {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 13px;
}

.video-transcript {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.dialogue-turn {
  display: grid;
  gap: 8px;
  padding: 15px 18px;
  border-left: 5px solid var(--speaker-color, var(--accent));
  background: color-mix(in srgb, var(--speaker-color, var(--accent)) 7%, var(--panel));
}

.dialogue-turn.host {
  --speaker-color: #0f766e;
}

.dialogue-turn.wang {
  --speaker-color: #b01224;
}

.dialogue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  color: var(--speaker-color);
  font-weight: 760;
}

.dialogue-meta time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
}

.dialogue-turn p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.transcript-stage {
  justify-self: center;
  margin: 4px 0;
  color: var(--muted);
  font-size: 14px;
}

.work-section {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.work-section:first-of-type {
  margin-top: 0;
}

.work-section h2 {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  font-weight: 500;
}

.work-card,
.archive-card {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color .15s ease, transform .15s ease;
}

.work-card:hover,
.archive-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}

.work-card img,
.poster-empty {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #ded7c9;
}

.poster-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.work-card span {
  display: grid;
  gap: 2px;
  padding: 12px;
}

.archive-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
}

.mark {
  width: 42px;
  height: 5px;
  background: var(--accent);
}

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

.gallery figure {
  margin: 0;
}

.gallery figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.watch-panel {
  display: grid;
  gap: 18px;
  margin-top: 34px;
  padding: 22px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 88%, var(--accent) 12%);
}

.watch-panel h2,
.watch-dialog h2 {
  margin: 0;
}

.watch-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.watch-platform {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid rgba(30, 30, 28, .18);
  background: var(--panel);
  color: var(--accent);
  padding: 9px 14px;
  font: inherit;
  font-size: 18px;
  font-weight: 750;
  cursor: pointer;
}

.watch-platform small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.watch-badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #18c36b, #4f7dff);
  color: #fff;
  font-size: 10px;
  line-height: 1.05;
}

.watch-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 42px));
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  padding: 0;
}

.watch-dialog::backdrop {
  background: rgba(20, 20, 18, .42);
}

.watch-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.watch-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  padding: 20px;
}

.episode-grid a {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-weight: 650;
}

.episode-grid a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.episode-grid small {
  font-size: 11px;
  line-height: 1;
}

.notice-list article,
.login-panel {
  padding: 20px;
}

@media (min-width: 1180px) {
  .wide-page .content {
    padding-left: 18px;
  }
}

.timeline-host {
  margin: -54px 0 -80px 0;
}

.wide-page .timeline-host .schedule-shell {
  display: block;
  min-height: auto;
}

.wide-page .timeline-host .content {
  max-width: none;
  padding: 0;
}

.timeline-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 168px);
  min-height: 760px;
  border: 1px solid var(--line);
  background: #fff;
}

.archive-frame-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  margin: -54px -18px -80px -18px;
  background: #fff;
  border-left: 1px solid var(--line);
}

.archive-frame-shell header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.archive-frame-shell nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.archive-frame-shell h1 {
  margin: 0;
  font-size: 18px;
}

.archive-frame-shell a {
  color: var(--accent);
  font-size: 14px;
}

.archive-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.archive-page .content {
  padding: 54px 18px 80px;
}

.login-panel {
  max-width: 420px;
}

.login-panel form,
.login-panel label {
  display: grid;
  gap: 8px;
}

.login-panel form {
  gap: 16px;
}

.form-hint {
  color: var(--muted);
  line-height: 1.7;
}

.login-panel input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  font: inherit;
}

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

@media (max-width: 760px) {
  .shell {
    display: block;
  }

  body.side-collapsed .shell {
    display: block;
  }

  .site-head {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 20;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--side);
  }

  .site-head .brand {
    margin: 0;
  }

  .menu-toggle {
    border: 1px solid var(--ink);
    background: transparent;
    min-width: 58px;
    min-height: 38px;
    padding: 8px 12px;
    font: inherit;
    font-weight: 700;
  }

  .site-head .calendar-promo {
    margin: 0;
    width: 38px;
    min-height: 38px;
  }

  .site-head .calendar-promo-toggle {
    width: 38px;
    height: 38px;
    background: transparent;
  }

  .side {
    display: none;
    position: sticky;
    top: 62px;
    z-index: 19;
    height: auto;
    padding: 10px 18px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 28px rgba(30, 30, 28, .12);
  }

  body.nav-open .side {
    display: block;
  }

  .side > .brand {
    display: none;
  }

  .side-toggle {
    display: none;
  }

  .nav {
    margin: 0;
    gap: 0;
  }

  .nav a {
    padding: 12px 0;
    font-size: 16px;
  }

  .side > .calendar-promo {
    display: none;
  }

  .account {
    position: static;
    margin-top: 18px;
  }

  .calendar-promo-menu {
    right: 0;
    left: auto;
    top: calc(100% + 8px);
    width: 176px;
  }

  .content {
    padding: 24px 14px 54px;
    max-width: none;
  }

  .site-foot {
    padding: 0 14px 28px;
  }

  .wide-page .content,
  .archive-page .content {
    padding: 18px 10px 48px;
  }

  .wide-page .site-foot,
  .archive-page .site-foot {
    padding-right: 10px;
    padding-left: 10px;
  }

  .page-title {
    margin-bottom: 20px;
  }

  h1 {
    font-size: 30px;
  }

  .pinned-list,
  .pinned-item,
  .news-row,
  .schedule-list li,
  .timeline article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .pinned-news,
  .month-schedule,
  .business-summary,
  .news-row,
  .notice-list article,
  .login-panel {
    padding: 15px;
  }

  .business-table {
    min-width: 560px;
    font-size: 14px;
  }

  .business-table thead th {
    font-size: 14px;
  }

  .business-table th,
  .business-table td {
    padding: 8px 7px;
  }

  .business-table th:nth-child(1),
  .business-table td:nth-child(1) {
    width: 44px;
  }

  .business-table th:nth-child(2),
  .business-table td:nth-child(2) {
    width: 250px;
  }

  .business-table th:nth-child(3),
  .business-table td:nth-child(3) {
    width: 104px;
  }

  .business-table th:nth-child(4),
  .business-table td:nth-child(4) {
    width: 118px;
  }

  .section-head {
    align-items: start;
  }

  .pinned-cover {
    display: none;
  }

  .schedule-list li {
    padding-left: 24px;
  }

  .work-grid,
  .magazine-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .archive-grid,
  .interview-tabs,
  .photo-album-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .interview-tabs a,
  .photo-album-list a {
    min-height: auto;
    padding: 15px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
  }

  .meitan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .meitan-lightbox {
    width: 100vw;
    height: 100dvh;
  }

  .meitan-lightbox-figure {
    padding: 54px 12px 28px;
  }

  .meitan-lightbox-figure img {
    max-height: calc(100dvh - 132px);
  }

  .meitan-lightbox-figure figcaption {
    flex-wrap: wrap;
    gap: 5px 10px;
    padding: 0 44px;
    font-size: 13px;
  }

  .meitan-lightbox-nav {
    top: auto;
    bottom: 28px;
    width: 42px;
    height: 42px;
    transform: none;
    font-size: 32px;
  }

  .meitan-lightbox-nav.is-prev {
    left: 12px;
  }

  .meitan-lightbox-nav.is-next {
    right: 12px;
  }

  .glam-table-wrap {
    display: none;
  }

  .glam-card-list {
    display: grid;
    gap: 12px;
  }

  .glam-table {
    min-width: 900px;
  }

  .glam-person-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .glam-roles {
    grid-template-columns: 38px minmax(0, 1fr);
    font-size: 14px;
  }

  .interview-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 15px;
  }

  .interview-body h2 {
    font-size: 21px;
  }

  .interview-body {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.72;
  }

  .interview-body blockquote {
    margin: 20px 0;
    padding: 13px 15px;
    font-size: 16px;
  }

  .scan-section {
    margin-top: 36px;
  }

  .scan-stack {
    gap: 14px;
  }

  .scan-stack figure {
    margin: 0 -2px;
  }

  .video-transcript {
    gap: 12px;
  }

  .dialogue-turn {
    padding: 13px 14px;
  }

  .dialogue-turn p {
    font-size: 15px;
    line-height: 1.72;
  }

  .work-card span {
    padding: 10px;
  }

  .watch-panel {
    margin-top: 28px;
    padding: 17px;
  }

  .watch-platforms {
    display: grid;
    grid-template-columns: 1fr;
  }

  .watch-platform {
    justify-content: flex-start;
    width: 100%;
  }

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

  .work-card strong,
  .archive-card strong {
    line-height: 1.35;
  }

  .profile-infobox,
  .work-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .profile-infobox th,
  .profile-infobox td,
  .work-table th,
  .work-table td {
    white-space: normal;
    min-width: 112px;
  }

  .timeline-frame {
    height: calc(100vh - 118px);
    min-height: 680px;
  }

  .archive-frame-shell {
    height: calc(100vh - 18px);
    margin: -18px -10px -48px;
    border-left: 0;
  }

  .archive-frame-shell header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 12px;
  }

  .archive-frame-shell nav {
    justify-content: space-between;
  }
}

@media (max-width: 430px) {
  .site-head .brand-main {
    font-size: 18px;
  }

  .site-head .brand-sub {
    display: none;
  }

  h1 {
    font-size: 27px;
  }

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

  .work-card small {
    font-size: 12px;
  }

  .timeline-frame {
    min-height: 720px;
  }
}
