:root {
  color-scheme: light;
  --canvas: #f3f1eb;
  --canvas-deep: #e9e6de;
  --surface: #fffefa;
  --surface-raised: #ffffff;
  --surface-soft: #ecefe9;
  --surface-tint: #e2efeb;
  --text: #192725;
  --text-soft: #344441;
  --muted: #687572;
  --muted-strong: #53625f;
  --line: #d9ddd5;
  --line-strong: #c4cbc2;
  --accent: #3b8f86;
  --accent-strong: #2f716a;
  --accent-deep: #416963;
  --accent-soft: #e4f1ed;
  --coral: #c95d49;
  --coral-strong: #9d3f30;
  --coral-soft: #f7e5df;
  --gold: #ae833d;
  --gold-soft: #f4ead5;
  --danger: #a83f3f;
  --danger-soft: #f7e2e2;
  --focus: #076eaa;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(27, 44, 40, 0.05), 0 8px 22px rgba(27, 44, 40, 0.05);
  --shadow-md: 0 2px 3px rgba(27, 44, 40, 0.04), 0 18px 46px rgba(27, 44, 40, 0.09);
  --shadow-lg: 0 28px 70px rgba(54, 91, 85, 0.14);
  --font-display: "Noto Serif TC", "Source Han Serif TC", "Songti TC", "STSong", "PMingLiU", serif;
  --font-body: "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 6% 4%, rgba(59, 143, 134, 0.09), transparent 25rem),
    radial-gradient(circle at 94% 22%, rgba(201, 93, 73, 0.07), transparent 24rem),
    var(--canvas);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.3px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(20, 58, 53, 0.018) 1px, transparent 1px);
  background-size: 100% 6px;
  content: "";
  pointer-events: none;
}

::selection {
  color: var(--accent-deep);
  background: rgba(174, 131, 61, 0.28);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.menu-toggle,
.mobile-calendar-header,
.mobile-date-strip,
.mobile-card-credits,
.mobile-person-role,
.mobile-person-productions,
.mobile-performance-cast,
.mobile-performance-time,
.mobile-performance-detail,
.mobile-agenda-date,
.mobile-person-portrait,
.mobile-person-social-links,
.mobile-person-credits,
.mobile-person-collaborators,
.person-bio-toggle,
.person-collaborator-toggle,
.search-category-tabs {
  display: none;
}

.production-card > .mobile-card-credits,
.person-card > .mobile-person-productions {
  display: none;
}

.performance-time-column,
.performance-card-body {
  display: contents;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  translate: 0 -150%;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  background: var(--accent-deep);
  box-shadow: var(--shadow-md);
  font-weight: 800;
  transition: translate 160ms ease;
}

.skip-link:focus {
  translate: 0;
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header,
.site-footer,
.app {
  width: min(1440px, 100%);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 14px 30px;
  border-bottom: 1px solid rgba(196, 203, 194, 0.6);
  background: rgba(247, 245, 239, 0.95);
  box-shadow: 0 4px 12px rgba(27, 44, 40, 0.04), 0 1px 2px rgba(27, 44, 40, 0.03);
  backdrop-filter: blur(18px) saturate(130%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: max-content;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 15px 15px 15px 5px;
  color: #fffaf1;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.13), transparent 44%),
    linear-gradient(145deg, var(--accent), var(--accent-deep));
  box-shadow: 0 10px 24px rgba(65, 105, 99, 0.18);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
}

.brand-mark::after {
  position: absolute;
  right: -7px;
  bottom: -8px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  content: "";
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(196, 203, 194, 0.72);
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  position: relative;
  border-radius: 10px;
  padding: 9px 15px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.main-nav a:hover {
  color: var(--accent-strong);
  background: rgba(228, 241, 237, 0.9);
}

.main-nav a.active {
  color: #fff;
  background: var(--accent-deep);
  box-shadow: 0 4px 12px rgba(65, 105, 99, 0.22);
}

.main-nav a:active {
  transform: translateY(1px);
}

.app {
  min-height: calc(100vh - 158px);
  padding: 32px 30px 52px;
}

.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: min(62vh, 560px);
  color: var(--muted);
}

.loading-state > div,
.loading-state strong,
.loading-state > div > span {
  display: block;
}

.loading-state strong {
  margin-bottom: 3px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 19px;
}

.loading-state span {
  font-size: 13px;
}

.loading-mark {
  display: grid;
  flex: 0 0 52px;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px 17px 17px 6px;
  color: #fffaf1;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  box-shadow: 0 12px 26px rgba(65, 105, 99, 0.22);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  animation: loading-pulse 1.6s ease-in-out infinite;
}

@keyframes loading-pulse {
  50% {
    box-shadow: 0 14px 32px rgba(65, 105, 99, 0.32);
    transform: translateY(-2px);
  }
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 30px 34px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.footer-brand {
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.page-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.content-stack,
.editor-shell {
  display: grid;
  gap: 24px;
}

.panel,
.profile-panel,
.calendar-panel,
.editor-header {
  border: 1px solid rgba(208, 214, 205, 0.75);
  border-radius: var(--radius-lg);
  background: rgba(255, 254, 250, 0.98);
  box-shadow: 0 4px 12px rgba(27, 44, 40, 0.05), 0 1px 3px rgba(27, 44, 40, 0.08);
}

.panel {
  padding: 24px;
}

.panel > h2:first-child,
.panel > h3:first-child {
  margin-top: 0;
}

.filters {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 104% -4%, rgba(15, 113, 103, 0.14), transparent 9rem),
    var(--surface);
  border-bottom: 1px solid rgba(208, 214, 205, 0.6);
  box-shadow: 0 2px 4px rgba(27, 44, 40, 0.03);
}

.filters::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold), transparent 82%);
  content: "";
}

.filters-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.filters-heading h2,
.filters-heading p {
  margin: 0;
}

.filters-heading h2 {
  margin-top: 3px;
  font-size: 24px;
}

.filter-count {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid rgba(15, 113, 103, 0.18);
  border-radius: 12px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 900;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.field span,
.filter-label,
.meta-label {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.035em;
}

input[type="search"],
input[type="text"],
input[type="url"],
textarea,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 2px rgba(27, 44, 40, 0.035);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input[type="search"] {
  padding-left: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2353625f' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 13px center;
}

select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2353625f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

textarea {
  min-height: 116px;
  padding-block: 12px;
  resize: vertical;
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(15, 113, 103, 0.35);
  background-color: #fff;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--focus);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(7, 110, 170, 0.12), inset 0 1px 2px rgba(27, 44, 40, 0.03);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 2px;
}

.filter-reset {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(201, 93, 73, 0.2);
  border-radius: 11px;
  color: var(--coral-strong);
  background: var(--coral-soft);
  font-size: 12px;
  font-weight: 800;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.filter-reset:hover,
.filter-reset:focus-visible {
  border-color: rgba(201, 93, 73, 0.52);
  background: #fbeee9;
  transform: translateY(-1px);
}

.stat {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(15, 113, 103, 0.08);
  border-radius: 13px;
  padding: 12px 8px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.7), var(--accent-soft));
  text-align: center;
}

.stat strong {
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.15;
}

.stat span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

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

.section-header h1,
.section-header h2,
.section-header p {
  margin: 0;
}

.section-header h1 {
  max-width: 820px;
  font-size: clamp(31px, 3.8vw, 48px);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.section-header h2 {
  font-size: clamp(23px, 2.2vw, 30px);
  letter-spacing: -0.02em;
}

.section-header > p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.75;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 950;
}

.home-hero {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(30px, 5vw, 54px);
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(118deg, rgba(56, 99, 93, 0.97), rgba(56, 127, 118, 0.92) 62%, rgba(61, 109, 102, 0.96)),
    var(--accent-deep);
  box-shadow: var(--shadow-lg);
}

.home-hero::before {
  position: absolute;
  inset: -45% 22% auto -12%;
  z-index: -1;
  height: 170%;
  background:
    linear-gradient(112deg, transparent 16%, rgba(250, 225, 178, 0.13) 28%, transparent 41%),
    linear-gradient(76deg, transparent 22%, rgba(255, 255, 255, 0.07) 34%, transparent 45%);
  content: "";
  transform: rotate(-6deg);
}

.home-hero::after {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: -0.38em;
  z-index: -1;
  color: rgba(255, 250, 241, 0.075);
  content: "劇";
  font-family: var(--font-display);
  font-size: clamp(150px, 24vw, 300px);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.home-hero .section-header {
  position: relative;
  z-index: 1;
  align-items: end;
  min-height: 145px;
  margin: 0;
}

.home-hero h1 {
  max-width: 660px;
  color: #fffaf1;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.12;
  text-wrap: balance;
}

.home-hero .eyebrow {
  color: #e6c580;
}

.home-hero .section-header > p {
  max-width: 420px;
  color: rgba(255, 250, 241, 0.78);
  font-size: 15px;
}

.index-panel {
  min-height: 420px;
}

.results-summary {
  width: max-content;
  margin: -3px 0 16px;
  border: 1px solid rgba(15, 113, 103, 0.12);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  background: var(--accent-soft);
  font-size: 12px;
}

.results-summary strong {
  color: var(--accent-strong);
  font-size: 13px;
}

.search-results,
.version-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

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

.version-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

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

.production-card,
.person-card,
.compact-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 13px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(208, 214, 205, 0.68);
  border-radius: var(--radius-md);
  padding: 21px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(250, 249, 244, 0.88)),
    var(--surface-raised);
  box-shadow: 0 3px 10px rgba(27, 44, 40, 0.05), 0 1px 2px rgba(27, 44, 40, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.search-results > .production-card,
.search-results > .person-card,
.search-results > .venue-card {
  content-visibility: auto;
  contain: layout paint style;
  contain-intrinsic-size: auto 340px;
}

.venue-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 13px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(174, 131, 61, 0.11), transparent 10rem),
    rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.venue-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), rgba(174, 131, 61, 0.08));
  content: "";
}

.venue-card:hover,
.venue-card:focus-within {
  border-color: rgba(174, 131, 61, 0.5);
  box-shadow: 0 16px 38px rgba(27, 44, 40, 0.11);
  transform: translateY(-3px);
}

.venue-card h3,
.venue-card p {
  margin: 0;
}

.venue-card h3 {
  font-size: clamp(21px, 2vw, 25px);
}

.venue-card > p {
  color: var(--muted);
  font-size: 13px;
}

.venue-card .text-button {
  justify-self: start;
  margin-top: auto;
}

.venue-status {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 900;
}

.venue-status.has-upcoming {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.venue-status.no-upcoming {
  color: var(--muted-strong);
  background: var(--surface-soft);
}

.venue-next-show {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.venue-next-show strong {
  font-family: var(--font-display);
  line-height: 1.45;
}

.venue-next-show time {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.venue-next-show a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.venue-empty-note {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.compact-empty-state {
  padding: 26px 20px;
}

.production-card::before,
.person-card::before,
.compact-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), rgba(15, 113, 103, 0.08));
  content: "";
  opacity: 0.85;
}

.person-card::before {
  background: linear-gradient(180deg, var(--coral), rgba(201, 93, 73, 0.08));
}

.production-card:hover,
.person-card:hover,
.compact-card:hover,
.production-card:focus-within,
.person-card:focus-within,
.compact-card:focus-within {
  border-color: rgba(15, 113, 103, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(250, 249, 244, 0.92)),
    var(--surface-raised);
  box-shadow: 0 8px 20px rgba(27, 44, 40, 0.09), 0 2px 4px rgba(15, 113, 103, 0.08);
  transform: translateY(-4px);
}

.production-card h3,
.person-card h3,
.compact-card h3 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 27px);
  line-height: 1.28;
  font-weight: 800;
}

.card-title-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.card-title-link::after {
  color: var(--accent);
  content: "↗";
  font-family: var(--font-body);
  font-size: 15px;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.production-card:hover .card-title-link::after,
.person-card:hover .card-title-link::after,
.venue-card:hover .card-title-link::after,
.card-title-link:focus-visible::after {
  opacity: 1;
  transform: translate(0);
}

.production-card p,
.person-card p,
.compact-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
  font-weight: 500;
}

.production-card > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.person-card-bio {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.person-card {
  gap: 10px;
  padding: 17px 18px;
}

.person-card h3 {
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.25;
}

.person-card-bio {
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
}

.person-card .card-topline:empty {
  display: none;
}

.person-card-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.person-card-identity > div {
  min-width: 0;
}

.person-card-identity p {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.45;
}

.person-avatar {
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid rgba(201, 93, 73, 0.25);
  border-radius: 14px;
  color: var(--coral-strong);
  background: var(--coral-soft);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 2px 4px rgba(201, 93, 73, 0.08);
}

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

.entity-id {
  border: 1px solid rgba(208, 214, 205, 0.8);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted-strong);
  background: rgba(255, 254, 250, 0.95);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 1px 2px rgba(27, 44, 40, 0.03);
}

.card-topline,
.inline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tag,
.role-chip,
.link-chip,
.review-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  transition: background 160ms ease, border-color 160ms ease;
}

.tag {
  color: var(--accent-strong);
  background: rgba(228, 241, 237, 0.92);
  border: 1px solid rgba(15, 113, 103, 0.15);
}

.role-chip {
  color: var(--text-soft);
  background: #f0f2ed;
  border: 1px solid rgba(84, 98, 95, 0.1);
}

.link-chip {
  border: 1px solid rgba(15, 113, 103, 0.18);
  color: var(--accent-strong);
  background: rgba(228, 241, 237, 0.85);
  font-weight: 800;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.link-chip:hover,
.link-chip:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 4px 10px rgba(15, 113, 103, 0.12);
  transform: translateY(-2px);
}

.person-links,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.credit-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  border: 1px solid rgba(208, 214, 205, 0.8);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--text);
  background: rgba(255, 254, 250, 0.92);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(27, 44, 40, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.credit-chip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credit-chip span {
  color: var(--muted);
}

.credit-chip:hover,
.credit-chip:focus-visible {
  border-color: rgba(15, 113, 103, 0.4);
  background: #fffaf9;
  box-shadow: 0 6px 12px rgba(27, 44, 40, 0.1);
  transform: translateY(-2px);
}

.timeline,
.record-list,
.calendar-list {
  display: grid;
  gap: 11px;
}

.record-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(208, 214, 205, 0.75);
  border-radius: 14px;
  padding: 17px;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: 0 2px 6px rgba(27, 44, 40, 0.05);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.record-card:hover,
.record-card:focus-within {
  border-color: rgba(15, 113, 103, 0.28);
  background: #fffaf9;
  box-shadow: 0 8px 18px rgba(27, 44, 40, 0.09);
  transform: translateY(-2px);
}

.record-card h3,
.record-card h4 {
  margin: 0;
  font-size: 20px;
}

.record-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.record-card time {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.record-card h3 a:hover,
.record-card p a:hover,
.profile-panel .eyebrow a:hover,
.performance-row a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(15, 113, 103, 0.55);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.timeline .record-card {
  position: relative;
  margin-left: 9px;
  border-left: 2px solid rgba(15, 113, 103, 0.34);
}

.timeline .record-card::before {
  position: absolute;
  top: 20px;
  left: -7px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(15, 113, 103, 0.18);
  content: "";
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  align-items: start;
}

.profile-panel {
  padding: clamp(25px, 4vw, 42px);
}

.profile-panel h1,
.profile-panel h2,
.profile-panel p {
  margin-top: 0;
}

.profile-panel h1 {
  margin-bottom: 8px;
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.profile-panel > h2 {
  margin: 38px 0 16px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
  font-size: clamp(24px, 2.5vw, 31px);
}

.profile-panel > p {
  color: var(--text-soft);
  line-height: 1.85;
  font-weight: 500;
}

.profile-panel .person-bio-copy {
  margin-top: 0;
  color: var(--text-soft);
  line-height: 1.85;
  font-weight: 500;
  white-space: pre-line;
}

.production-synopsis {
  white-space: pre-line;
}

.organization-description {
  white-space: pre-wrap;
}

.profile-panel > h1 + p {
  color: var(--muted-strong);
  font-family: var(--font-display);
  font-size: 18px;
}

.profile-panel > .chip-row {
  margin: 18px 0 4px;
}

.profile-side {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 16px;
}

.profile-side .panel {
  box-shadow: var(--shadow-sm);
}

.poster-block,
.portrait-block {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 330px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fffaf1;
  background:
    linear-gradient(150deg, rgba(55, 91, 86, 0.97), rgba(58, 132, 122, 0.88)),
    var(--accent-deep);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.poster-block::before,
.portrait-block::before {
  position: absolute;
  inset: -35% -16% auto auto;
  z-index: -1;
  width: 260px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 35px rgba(255, 255, 255, 0.035),
    0 0 0 72px rgba(255, 255, 255, 0.025);
  content: "";
}

.poster-block::after {
  position: absolute;
  bottom: 18px;
  left: 21px;
  z-index: -1;
  color: rgba(255, 255, 255, 0.34);
  content: "TAIWAN · STAGE · ARCHIVE";
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.poster-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-block.has-poster::after {
  display: none;
}

.production-card-poster {
  position: relative;
  display: block;
  height: 140px;
  margin: -4px -4px 14px;
  overflow: hidden;
  border-radius: 13px;
  background: var(--surface-soft);
}

.production-card-poster.is-fallback,
.production-card-poster-fallback {
  display: none;
}

.production-card-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

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

.portrait-block {
  min-height: 260px;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 32%, rgba(247, 229, 223, 0.3), transparent 22%),
    linear-gradient(152deg, #683b32, var(--coral) 58%, #9d4636);
}

.portrait-block::before {
  inset: 30px auto auto 50%;
  width: 170px;
  translate: -50% 0;
  border-color: rgba(255, 255, 255, 0.24);
}

.portrait-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-block.has-photo::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(25, 39, 37, 0.06) 35%, rgba(25, 39, 37, 0.82));
  content: "";
}

.portrait-block.has-photo > div {
  align-self: end;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.poster-block > div,
.portrait-block > div {
  position: relative;
  z-index: 1;
}

.poster-block strong,
.portrait-block strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(31px, 3vw, 40px);
  line-height: 1.25;
  text-wrap: balance;
}

.portrait-block strong {
  font-size: clamp(25px, 2.4vw, 32px);
}

.poster-block span,
.portrait-block span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 250, 241, 0.76);
  font-size: 13px;
  line-height: 1.6;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr));
  gap: 10px;
}

.detail-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(236, 239, 233, 0.72));
}

.detail-item strong {
  display: block;
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.55;
}

.performance-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.performance-row:first-child {
  border-top: 0;
}

.production-version-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 113, 103, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(27, 44, 40, 0.07), 0 1px 3px rgba(27, 44, 40, 0.05);
}

.version-card-header {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(201, 93, 73, 0.1), transparent 15rem),
    linear-gradient(140deg, rgba(232, 244, 240, 0.96), rgba(255, 255, 255, 0.82));
}

.version-year-block {
  display: grid;
  gap: 2px;
  place-items: center;
  min-height: 76px;
  border: 1px solid rgba(15, 113, 103, 0.18);
  border-radius: 16px;
  padding: 10px;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.84);
}

.version-year-block span {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.version-year-block strong {
  font-family: var(--font-display);
  font-size: 24px;
}

.version-title-block h3,
.version-subheading h4 {
  margin: 0;
}

.version-title-block h3 {
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.2;
}

.version-title-block > p:last-child {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.version-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  max-width: 240px;
}

.version-summary span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 800;
}

.version-summary strong {
  color: var(--text);
}

.version-summary .has-upcoming {
  border-color: rgba(201, 93, 73, 0.22);
  color: var(--coral-strong);
  background: var(--coral-soft);
}

.version-people-block,
.version-performance-block {
  display: grid;
  gap: 13px;
  padding: 18px 22px;
}

.version-people-block {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.version-people-disclosure {
  display: grid;
  gap: 13px;
}

.version-people-disclosure > summary {
  cursor: pointer;
  list-style: none;
}

.version-people-disclosure > summary::-webkit-details-marker {
  display: none;
}

.version-people-disclosure > summary:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgba(201, 93, 73, 0.24);
  outline-offset: 4px;
}

.version-people-content {
  min-width: 0;
}

.version-people-toggle {
  display: inline-flex;
  margin-left: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-style: normal;
}

.version-people-toggle i {
  font-style: normal;
}

.version-people-disclosure:not([open]) .when-open,
.version-people-disclosure[open] .when-closed {
  display: none;
}

.version-subheading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.version-subheading h4 {
  font-size: 16px;
}

.version-subheading > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.version-performance-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.version-performance-actions > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.version-ticket-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 11px;
}

.version-performance-list {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(196, 203, 194, 0.68);
  border-radius: 12px;
  background: #fff;
}

.version-performance-card {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  border-top: 1px solid rgba(196, 203, 194, 0.58);
  background: #fff;
}

.version-performance-card:first-child {
  border-top: 0;
}

.performance-date-block {
  display: grid;
  align-content: start;
  min-width: 154px;
  max-width: 154px;
  overflow: hidden;
  border-right: 1px solid rgba(196, 203, 194, 0.55);
  padding: 12px 14px;
  color: var(--accent-deep);
  background: rgba(228, 241, 237, 0.35);
  font-weight: 600;
}

.performance-date-block time {
  display: grid;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.performance-date-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
}

.performance-date-line strong {
  font-family: var(--font-display);
  font-size: 14px;
}

.performance-date-line small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.performance-time {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: clip;
  white-space: nowrap;
}

.performance-main {
  display: grid;
  grid-template-columns: minmax(170px, 0.62fr) minmax(0, 1.38fr);
  gap: 24px;
  align-items: start;
  min-width: 0;
  padding: 14px 18px;
}

.performance-location {
  min-width: 0;
  overflow-wrap: anywhere;
}

.performance-location strong {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 750;
}

.performance-location p,
.version-empty-copy,
.version-empty-state p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.version-performance-card .cast-preview {
  display: grid;
  gap: 3px;
  min-width: 0;
  border-top: 0;
  padding-top: 0;
}

.version-performance-card .cast-preview .meta-label {
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.cast-text-list {
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.cast-text-entry,
.cast-text-entry a,
.cast-text-entry small,
.cast-text-separator {
  display: inline;
}

.cast-text-entry a {
  color: var(--text);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.cast-text-entry a:hover,
.cast-text-entry a:focus-visible {
  color: var(--accent-strong);
  text-decoration-color: currentColor;
}

.cast-text-entry small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
}

.cast-text-separator {
  color: rgba(65, 105, 99, 0.48);
}

.version-empty-state {
  padding: 21px;
  text-align: center;
  background: var(--surface-soft);
}

.calendar-panel {
  overflow: hidden;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 108px;
  padding: 20px 24px;
  color: #fff;
  background:
    radial-gradient(circle at 52% -120%, rgba(255, 255, 255, 0.24), transparent 55%),
    linear-gradient(120deg, var(--accent-deep), #4c887f);
}

.calendar-toolbar > div {
  text-align: center;
}

.calendar-toolbar h1,
.calendar-toolbar p {
  margin: 0;
}

.calendar-toolbar h1 {
  color: #fffaf1;
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: 0.02em;
}

.calendar-toolbar .eyebrow {
  margin-bottom: 3px;
  color: #e6c580;
}

.calendar-toolbar .text-button {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fffaf1;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.calendar-toolbar .text-button:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.15);
}

.calendar-table {
  background: #f6f5f0;
}

.calendar-grid,
.weekday-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekday-row {
  padding: 12px 17px 8px;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
}

.weekday-row span:nth-child(6),
.weekday-row span:nth-child(7) {
  color: var(--coral-strong);
}

.calendar-grid {
  gap: 1px;
  padding: 0 16px 16px;
  background: var(--line);
}

.calendar-day {
  position: relative;
  display: grid;
  align-content: start;
  gap: 7px;
  width: 100%;
  min-width: 0;
  min-height: 122px;
  border: 0;
  padding: 10px;
  color: var(--text);
  background: var(--surface);
  text-align: left;
  transition: background 150ms ease, box-shadow 150ms ease, border 150ms ease;
}

.calendar-day:nth-child(7n + 6),
.calendar-day:nth-child(7n + 7) {
  background: rgba(253, 250, 247, 0.9);
}

.calendar-day:hover {
  z-index: 1;
  background: rgba(241, 248, 245, 0.95);
  box-shadow: inset 0 0 0 2px rgba(15, 113, 103, 0.25);
}

.calendar-day.outside {
  color: #77827f;
  background: #eeefeb;
}

.calendar-day.outside .calendar-event,
.calendar-day.outside .day-count {
  opacity: 0.58;
}

.calendar-day.selected {
  z-index: 2;
  background: #f2faf7;
  box-shadow: inset 0 0 0 3px var(--accent);
}

.calendar-day .day-number {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 13px;
}

.calendar-day.today .day-number {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 5px 12px rgba(201, 93, 73, 0.28);
}

.calendar-day.today::after {
  position: absolute;
  top: 14px;
  right: 10px;
  color: var(--coral-strong);
  content: "今日";
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.day-count {
  width: max-content;
  border: 1px solid rgba(15, 113, 103, 0.1);
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 10px;
  font-weight: 900;
}

.calendar-event {
  display: grid;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
  border-left: 3px solid rgba(15, 113, 103, 0.42);
  border-radius: 5px;
  padding: 5px 6px 5px 7px;
  background: rgba(220, 238, 233, 0.62);
  pointer-events: none;
}

.calendar-event span,
.calendar-event small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event span {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
}

.calendar-event small {
  color: var(--muted-strong);
  font-size: 10px;
}

.day-agenda {
  padding: 24px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 96% 0%, rgba(174, 131, 61, 0.1), transparent 14rem),
    var(--surface);
}

.city-timeline {
  gap: 2px;
}

.city-timeline-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
  position: relative;
}

.city-timeline-item + .city-timeline-item {
  padding-top: 8px;
}

.city-timeline-marker {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: auto;
  padding: 0;
  color: var(--accent-deep);
  text-align: left;
  flex: 0 0 auto;
}

.city-timeline-marker span {
  display: grid;
  justify-items: start;
  gap: 1px;
  max-width: max-content;
  border: 1px solid rgba(15, 113, 103, 0.15);
  border-radius: 10px;
  padding: 5px 8px;
  background: rgba(228, 241, 237, 0.85);
  box-shadow: none;
  line-height: 1.3;
  white-space: nowrap;
}

.city-timeline-marker strong {
  font-size: 11px;
  font-weight: 900;
  color: var(--accent-strong);
}

.city-timeline-marker small {
  color: var(--muted-strong);
  font-size: 9px;
  font-weight: 800;
  display: none;
}

.city-performance-stack {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.city-timeline-marker::after {
  display: none;
}

.city-timeline-marker::before {
  display: none;
}

.performance-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.performance-card-header time {
  font-weight: 700;
  color: var(--accent-strong);
}

.cast-preview {
  display: grid;
  gap: 7px;
  border-top: 1px solid rgba(208, 214, 205, 0.7);
  padding-top: 10px;
  margin-top: 4px;
}

.cast-preview strong {
  color: var(--text);
}

.cast-chip {
  border-color: rgba(15, 113, 103, 0.2);
  background: var(--accent-soft);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.performance-row .button-row {
  gap: 7px;
  margin-top: 12px;
}

.text-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.primary-button {
  border-color: var(--accent-strong);
  color: #fff;
  background: linear-gradient(135deg, #3b8f86, var(--accent-strong));
  box-shadow: 0 6px 16px rgba(15, 113, 103, 0.22), 0 2px 4px rgba(15, 113, 103, 0.1);
}

.primary-button:hover {
  border-color: var(--accent-deep);
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-deep));
  box-shadow: 0 12px 24px rgba(15, 113, 103, 0.28), 0 3px 6px rgba(15, 113, 103, 0.12);
  transform: translateY(-1px);
}

.text-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(27, 44, 40, 0.05);
}

.text-button:hover {
  border-color: rgba(15, 113, 103, 0.4);
  color: var(--accent-strong);
  background: #fff;
  box-shadow: 0 6px 16px rgba(27, 44, 40, 0.09);
  transform: translateY(-1px);
}

.text-button:active,
.primary-button:active {
  box-shadow: none;
  transform: translateY(1px);
}

.performance-row .text-button,
.performance-row .primary-button {
  min-height: 36px;
  border-radius: 9px;
  padding: 0 11px;
  font-size: 12px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 42px 26px;
  border: 1px dashed rgba(208, 214, 205, 0.7);
  border-radius: var(--radius-md);
  color: var(--muted);
  background:
    radial-gradient(circle at 50% 0%, rgba(15, 113, 103, 0.06), transparent 13rem),
    rgba(255, 254, 250, 0.8);
  text-align: center;
}

.empty-state h1 {
  margin-top: 0;
}

.about-page {
  display: grid;
  gap: 20px;
}

.about-page-heading {
  max-width: 760px;
  padding: 8px 2px 10px;
}

.about-page-heading h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.035em;
}

.about-page-heading > p:last-child {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.8;
}

.about-copy {
  display: grid;
  gap: 12px;
}

.about-copy p {
  margin: 0;
}

.about-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  min-height: 430px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  padding: clamp(34px, 6vw, 76px);
  color: #fffaf1;
  background:
    radial-gradient(circle at 82% 18%, rgba(230, 197, 128, 0.2), transparent 17rem),
    linear-gradient(125deg, #294d48, #3d756d 62%, #315b55);
  box-shadow: var(--shadow-lg);
}

.about-hero::before {
  position: absolute;
  inset: auto auto -48% -7%;
  z-index: -1;
  width: 360px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(255, 255, 255, 0.025),
    0 0 0 90px rgba(255, 255, 255, 0.018);
  content: "";
}

.about-hero-copy {
  position: relative;
  z-index: 1;
}

.about-hero .eyebrow {
  color: #e6c580;
}

.about-kicker {
  display: block;
  margin: 12px 0 5px;
  color: rgba(255, 250, 241, 0.7);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.about-hero h1 {
  max-width: 720px;
  margin: 0;
  color: #fffaf1;
  font-size: clamp(46px, 7vw, 78px);
  letter-spacing: -0.045em;
}

.about-role {
  margin: 8px 0 0;
  color: #e6c580;
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 800;
}

.about-intro {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255, 250, 241, 0.82);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.9;
}

.about-portrait-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 120px 120px 24px 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045)),
    rgba(25, 52, 48, 0.34);
  box-shadow: 0 24px 60px rgba(18, 42, 38, 0.32);
}

.about-portrait-placeholder span {
  color: rgba(255, 250, 241, 0.84);
  font-family: var(--font-display);
  font-size: 74px;
  font-weight: 900;
}

.about-portrait-placeholder small {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  color: rgba(255, 250, 241, 0.62);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
}

.about-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
}

.about-card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 42px);
}

.about-card h2,
.about-card p,
.about-values-section h2,
.about-contact-card h2,
.about-contact-card p {
  margin-top: 0;
}

.about-card h2,
.about-values-section h2,
.about-contact-card h2 {
  margin-bottom: 18px;
  font-size: clamp(24px, 2.7vw, 30px);
}

.about-card > p:not(.eyebrow),
.about-card .about-copy p,
.about-contact-card p {
  color: var(--muted);
  line-height: 1.85;
}

.about-story-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(59, 143, 134, 0.12), transparent 14rem),
    var(--surface);
}

.about-placeholder-note {
  display: inline-flex;
  margin-top: 18px;
  border: 1px dashed rgba(174, 131, 61, 0.42);
  border-radius: 10px;
  padding: 8px 11px;
  color: #7a6339;
  background: var(--gold-soft);
  font-size: 11px;
  font-weight: 800;
}

.about-focus-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-focus-list li {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 0 0 13px 22px;
  color: var(--text-soft);
  line-height: 1.65;
}

.about-focus-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.about-focus-list li::before {
  position: absolute;
  top: 0.55em;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px var(--coral-soft);
  content: "";
}

.about-values-section {
  padding: clamp(26px, 4vw, 42px);
}

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

.about-value-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 21px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), var(--surface-soft));
}

.about-value-card > span {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.about-value-card h3 {
  margin: 13px 0 8px;
  font-size: 23px;
}

.about-value-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.about-contact-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(26px, 4vw, 42px);
  background:
    radial-gradient(circle at 95% 0%, rgba(201, 93, 73, 0.1), transparent 13rem),
    var(--surface);
}

.about-contact-card > div:first-child {
  max-width: 650px;
}

.about-support-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  background:
    radial-gradient(circle at 100% 0%, rgba(174, 131, 61, 0.12), transparent 15rem),
    var(--surface);
}

.about-support-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 34px);
}

.about-support-heading > p:last-child,
.about-support-heading .about-copy,
.about-support-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.about-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.9fr);
  gap: 20px;
  align-items: center;
}

.about-support-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-support-points > .meta-label {
  display: block;
  margin: 0 0 9px;
}

.about-support-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-soft);
}

.about-support-list li::before {
  position: absolute;
  top: 0.63em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.about-support-note {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.support-actions {
  margin-top: 16px;
}

.about-contact-chip {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.bottle-section {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 52px);
  background:
    radial-gradient(circle at 95% 4%, rgba(230, 197, 128, 0.18), transparent 16rem),
    linear-gradient(145deg, rgba(255, 254, 250, 0.98), rgba(228, 241, 237, 0.82));
}

.bottle-section::after {
  position: absolute;
  right: -70px;
  bottom: -130px;
  width: 310px;
  height: 230px;
  border: 1px solid rgba(59, 143, 134, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 38px rgba(59, 143, 134, 0.025),
    0 0 0 76px rgba(59, 143, 134, 0.018);
  content: "";
  pointer-events: none;
}

.bottle-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 30px;
}

.bottle-heading > div {
  max-width: 760px;
}

.bottle-heading h2,
.bottle-heading p {
  margin-top: 0;
}

.bottle-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(31px, 4vw, 45px);
}

.bottle-heading > div > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.bottle-easter-egg {
  display: grid;
  flex: 0 0 54px;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(174, 131, 61, 0.25);
  border-radius: 50%;
  color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 10px 24px rgba(174, 131, 61, 0.14);
  font-size: 21px;
}

.bottle-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0;
}

.bottle-flow span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px 6px 7px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 800;
}

.bottle-flow strong {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent-deep);
  font-size: 10px;
}

.bottle-exchange-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
  gap: 22px;
  align-items: stretch;
}

.bottle-form {
  display: grid;
  gap: 18px;
  min-width: 0;
  border: 1px solid rgba(196, 203, 194, 0.88);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 30px);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-sm);
}

.bottle-category-fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.bottle-category-fieldset legend {
  margin-bottom: 10px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 900;
}

.bottle-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.bottle-category-card {
  position: relative;
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 254, 250, 0.82);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bottle-category-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(59, 143, 134, 0.16), 0 8px 18px rgba(27, 44, 40, 0.07);
  transform: translateY(-1px);
}

.bottle-category-card:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.bottle-category-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.bottle-category-card > span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  margin-bottom: 5px;
  border-radius: 9px;
  color: var(--accent-strong);
  background: rgba(228, 241, 237, 0.9);
  font-family: var(--font-display);
  font-weight: 900;
}

.bottle-category-card strong {
  font-family: var(--font-display);
  font-size: 17px;
}

.bottle-category-card small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.bottle-message-field {
  gap: 9px;
}

.bottle-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bottle-field-label label {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 900;
}

.bottle-field-label > span {
  color: var(--muted);
  font-size: 11px;
}

.bottle-field-label strong {
  color: var(--accent-strong);
}

.bottle-message-field textarea {
  min-height: 150px;
  background: rgba(255, 254, 250, 0.94);
}

.bottle-privacy-note {
  margin: -4px 0 0;
  border-left: 3px solid var(--gold);
  padding-left: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.bottle-submit {
  justify-self: start;
}

.bottle-submit-status {
  min-height: 1.6em;
  margin: -8px 0 0;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.bottle-received {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 38px);
  color: #fffaf1;
  background:
    radial-gradient(circle at 50% 110%, rgba(230, 197, 128, 0.2), transparent 16rem),
    linear-gradient(150deg, #315e58, #427f76);
  box-shadow: var(--shadow-md);
}

.bottle-sea {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bottle-sea span {
  position: absolute;
  color: rgba(255, 250, 241, 0.16);
  font-size: 24px;
}

.bottle-sea span:nth-child(1) {
  top: 12%;
  right: 15%;
}

.bottle-sea span:nth-child(2) {
  right: -4%;
  bottom: 13%;
  font-size: 110px;
  transform: rotate(-8deg);
}

.bottle-sea span:nth-child(3) {
  bottom: 20%;
  left: 12%;
  font-size: 38px;
}

.bottle-waiting,
.bottle-result {
  max-width: 420px;
  text-align: center;
}

.bottle-waiting strong {
  display: block;
  font-family: var(--font-display);
  font-size: 25px;
}

.bottle-waiting p {
  margin: 12px 0 0;
  color: rgba(255, 250, 241, 0.72);
  line-height: 1.75;
}

.bottle-result {
  position: relative;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px 18px 18px 5px;
  padding: 25px 22px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.bottle-result[hidden],
.bottle-waiting[hidden] {
  display: none;
}

.bottle-result .eyebrow {
  color: #e6c580;
}

.bottle-result blockquote {
  margin: 20px 0;
  color: #fffaf1;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.3vw, 26px);
  line-height: 1.75;
  white-space: pre-wrap;
}

.bottle-result small {
  color: rgba(255, 250, 241, 0.65);
  font-size: 11px;
}

.bottle-result.is-empty blockquote {
  font-family: var(--font-body);
  font-size: 14px;
}

.editor-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  overflow: hidden;
  padding: 28px;
  background:
    radial-gradient(circle at 96% 2%, rgba(15, 113, 103, 0.14), transparent 17rem),
    var(--surface);
}

.editor-header h1,
.editor-header p {
  margin: 0;
}

.editor-header h1 {
  max-width: 800px;
  font-size: clamp(33px, 4vw, 50px);
  letter-spacing: -0.035em;
}

.editor-header p:last-child {
  max-width: 780px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  justify-content: flex-end;
  gap: 9px;
}

.editor-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}

.review-queue,
.editor-side {
  position: sticky;
  top: 102px;
}

.editor-main,
.editor-side,
.review-list,
.quality-list,
.cast-editor-list {
  display: grid;
  gap: 14px;
}

.editor-main .panel,
.review-queue,
.editor-side .panel {
  box-shadow: var(--shadow-sm);
}

.review-item {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 1px solid rgba(208, 214, 205, 0.75);
  border-radius: 13px;
  padding: 13px;
  color: var(--text);
  background: rgba(255, 254, 250, 0.96);
  text-align: left;
  box-shadow: 0 2px 4px rgba(27, 44, 40, 0.04);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.review-item:hover {
  border-color: rgba(15, 113, 103, 0.3);
  background: #fffaf9;
  box-shadow: 0 6px 12px rgba(27, 44, 40, 0.08);
  transform: translateY(-2px);
}

.review-item > span:not(.review-status) {
  color: var(--muted);
  font-size: 11px;
}

.review-item.active {
  border-color: var(--accent);
  background: #f4faf8;
  box-shadow: inset 4px 0 0 var(--accent), 0 8px 18px rgba(27, 44, 40, 0.07);
}

.review-status {
  border: 1px solid rgba(15, 113, 103, 0.12);
}

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

.source-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(236, 239, 233, 0.68));
}

.source-box p,
.source-box ul {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.source-box ul {
  padding-left: 20px;
}

.wide-field {
  grid-column: 1 / -1;
}

.cast-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto;
  gap: 11px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(236, 239, 233, 0.55);
}

.compact-action {
  min-height: 38px;
  padding-inline: 12px;
  font-size: 12px;
}

.quality-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 11px;
}

.quality-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hidden {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

.trial-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 12px;
}

.trial-modal[hidden] {
  display: none;
}

.trial-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 39, 36, 0.62);
  backdrop-filter: blur(5px);
}

.trial-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  border: 1px solid rgba(208, 214, 205, 0.82);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(circle at 100% 0%, rgba(59, 143, 134, 0.12), transparent 15rem),
    var(--surface);
  box-shadow: var(--shadow-lg);
}

.trial-modal-dialog h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 34px);
}

.trial-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.82);
  font-size: 24px;
  line-height: 1;
}

.trial-modal-copy {
  display: grid;
  gap: 11px;
  margin-top: 16px;
  color: var(--text-soft);
}

.trial-modal-copy p {
  margin: 0;
}

.trial-modal-actions {
  margin-top: 20px;
}

@media (min-width: 1480px) {
  .site-header {
    top: 12px;
    border: 1px solid rgba(196, 203, 194, 0.78);
    border-radius: 20px;
  }
}

@media (max-width: 1180px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }

  .review-queue,
  .editor-side {
    position: static;
  }

  .review-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

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

@media (max-width: 980px) {
  .page-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
  }

  .filters-heading,
  .quick-stats {
    grid-column: 1 / -1;
  }

  .filter-reset {
    grid-column: 1 / -1;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-side {
    position: static;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  }

  .profile-side .panel:last-child:nth-child(3) {
    grid-column: 1 / -1;
  }

  .about-support-card,
  .about-support-grid {
    grid-template-columns: 1fr;
  }

  .about-support-note {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 18px;
    padding-left: 0;
  }

  .bottle-exchange-grid {
    grid-template-columns: 1fr;
  }

  .bottle-received {
    min-height: 330px;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    padding: 15px 18px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
  }

  .main-nav a {
    flex: 1;
    min-width: max-content;
    padding-inline: 12px;
    text-align: center;
    white-space: nowrap;
  }

  .app {
    padding: 20px 16px 38px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 20px 16px 28px;
  }

  .panel {
    padding: 20px;
  }

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

  .home-hero {
    min-height: 330px;
    padding: 30px 24px;
  }

  .home-hero .section-header {
    align-items: start;
    flex-direction: column;
    justify-content: flex-end;
    gap: 16px;
    min-height: 260px;
  }

  .home-hero .section-header > p {
    max-width: 100%;
  }

  .home-hero::after {
    right: -20px;
    bottom: 18px;
  }

  .section-header,
  .editor-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-header > p {
    max-width: 100%;
  }

  .profile-side {
    grid-template-columns: 1fr;
  }

  .profile-side .panel:last-child:nth-child(3) {
    grid-column: auto;
  }

  .poster-block,
  .portrait-block {
    min-height: 270px;
  }

  .source-grid,
  .editor-form-grid,
  .cast-editor-row,
  .editor-side {
    grid-template-columns: 1fr;
  }

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

  .version-card-header {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .version-summary {
    grid-column: 1 / -1;
    justify-content: flex-start;
    max-width: none;
  }

  .about-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .about-portrait-placeholder {
    justify-self: center;
    width: min(230px, 76%);
  }

  .about-section-grid {
    grid-template-columns: 1fr;
  }

  .about-contact-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .production-grid {
    grid-template-columns: 1fr;
  }

  .production-card-poster {
    height: 125px;
  }

  .version-card-header {
    grid-template-columns: 1fr;
    padding: 17px;
  }

  .version-year-block {
    grid-template-columns: auto auto;
    justify-content: start;
    width: max-content;
    min-height: 0;
  }

  .version-year-block strong {
    font-size: 20px;
  }

  .version-people-block,
  .version-performance-block {
    padding: 16px;
  }

  .version-performance-card {
    grid-template-columns: 1fr;
  }

  .performance-date-block {
    min-width: 0;
    max-width: none;
    border-right: 0;
    border-bottom: 1px solid rgba(196, 203, 194, 0.55);
    padding: 11px 14px;
  }

  .performance-date-block time {
    grid-template-columns: 1fr;
    gap: 2px;
    width: 100%;
  }

  .performance-date-line {
    white-space: normal;
  }

  .performance-time {
    font-size: 16px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .performance-main {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .version-subheading {
    align-items: flex-start;
  }

  .version-performance-actions {
    align-items: flex-end;
    flex-direction: column;
  }

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

  .about-hero {
    gap: 28px;
    border-radius: var(--radius-lg);
    padding: 30px 22px;
  }

  .about-intro {
    margin-top: 20px;
  }

  .about-values-grid {
    grid-template-columns: 1fr;
  }

  .bottle-heading {
    gap: 18px;
  }

  .bottle-category-grid {
    grid-template-columns: 1fr;
  }

  .bottle-category-card {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 11px;
    align-items: center;
  }

  .bottle-category-card > span {
    grid-row: 1 / 3;
    margin: 0;
  }

  .bottle-category-card small {
    grid-column: 2;
  }

  .calendar-toolbar {
    min-height: 92px;
    padding: 16px 12px;
  }

  .calendar-toolbar .text-button {
    min-height: 38px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .weekday-row {
    padding: 10px 8px 7px;
  }

  .calendar-grid {
    padding: 0 7px 8px;
  }

  .calendar-day {
    gap: 5px;
    min-height: 78px;
    padding: 6px 4px;
  }

  .calendar-day .day-number {
    width: 27px;
    height: 27px;
    font-size: 12px;
  }

  .calendar-day.today::after {
    display: none;
  }

  .calendar-event {
    display: none;
  }

  .day-count {
    padding-inline: 5px;
    font-size: 9px;
  }

  .day-agenda {
    padding: 19px;
  }

  .city-timeline-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
  }

  .city-timeline-marker {
    padding-right: 15px;
  }

  .city-timeline-marker span {
    max-width: 56px;
    padding: 5px 6px;
  }

  .city-timeline-marker strong {
    font-size: 10px;
  }

  .city-timeline-marker small {
    font-size: 9px;
  }

  .city-timeline-marker::after {
    right: 4px;
  }

  .city-timeline-marker::before {
    right: -1px;
  }

  .quick-stats {
    grid-column: auto;
  }

  .profile-panel {
    padding: 24px 20px;
  }

  .profile-panel h1 {
    font-size: clamp(36px, 12vw, 52px);
  }
}

@media (max-width: 420px) {
  .app {
    padding-inline: 10px;
  }

  .site-header {
    padding-inline: 12px;
  }

  .brand small {
    display: none;
  }

  .main-nav a {
    padding-inline: 10px;
    font-size: 13px;
  }

  .panel,
  .day-agenda {
    padding: 17px;
  }

  .home-hero {
    padding: 24px 20px;
  }

  .home-hero h1 {
    font-size: 39px;
  }

  .production-card,
  .person-card,
  .compact-card,
  .record-card {
    padding: 16px;
  }

  .calendar-toolbar h1 {
    font-size: 21px;
  }

  .calendar-toolbar .eyebrow {
    display: none;
  }

  .calendar-day {
    min-height: 72px;
  }

  .day-count {
    overflow: hidden;
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    background: var(--accent);
    color: transparent;
  }

  .quick-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
    line-height: 1.55;
  }

  .site-header {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 5px 10px;
  }

  .brand {
    gap: 9px;
    min-width: 0;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px 9px 9px 4px;
    font-size: 17px;
  }

  .brand strong {
    font-size: 16px;
    white-space: nowrap;
  }

  .brand small {
    display: none;
  }

  .menu-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    padding: 0;
    color: var(--accent-deep);
    background: var(--surface);
  }

  .menu-toggle-icon,
  .menu-toggle-icon::before,
  .menu-toggle-icon::after {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .menu-toggle-icon::before {
    transform: translateY(-6px);
  }

  .menu-toggle-icon::after {
    transform: translateY(4px);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    background: transparent;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
    transform: translateY(0) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    transform: translateY(-2px) rotate(-45deg);
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    overflow: visible;
    border-radius: 10px;
    padding: 4px;
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    min-width: 0;
    padding: 8px 5px;
    font-size: 12px;
    text-align: center;
    white-space: normal;
  }

  .app {
    min-height: calc(100vh - 120px);
    padding: 10px 10px 26px;
  }

  .content-stack,
  .editor-shell {
    gap: 10px;
  }

  .panel,
  .profile-panel,
  .calendar-panel {
    border-radius: 10px;
  }

  .panel {
    padding: 13px;
  }

  .page-grid {
    gap: 10px;
  }

  .filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, 0.55fr);
    gap: 8px;
    padding: 10px;
  }

  .filters-heading {
    display: none;
  }

  .filters .field {
    gap: 4px;
  }

  .filters .filter-field-search {
    grid-column: 1 / -1;
  }

  .filters[data-filter-scope="productions"],
  .filters[data-filter-scope="people"] {
    grid-template-columns: 1fr;
  }

  .filters[data-filter-scope="productions"] .field,
  .filters[data-filter-scope="people"] .field,
  .filters[data-filter-scope="productions"] .filter-reset,
  .filters[data-filter-scope="people"] .filter-reset {
    grid-column: 1 / -1;
    width: 100%;
  }

  .filters .field label {
    font-size: 10px;
  }

  .filters input,
  .filters select {
    min-height: 40px;
    border-radius: 8px;
    font-size: 13px;
  }

  .filters .filter-field-city,
  .filters[data-filter-scope="global"] .filter-field-role,
  .quick-stats {
    display: none;
  }

  .filter-reset {
    grid-column: auto;
    min-height: 40px;
    border-radius: 8px;
  }

  .section-header {
    gap: 4px;
    margin-bottom: 10px;
  }

  .section-header h1 {
    font-size: 26px;
  }

  .section-header h2 {
    font-size: 21px;
  }

  .section-header > p {
    display: none;
  }

  .eyebrow {
    margin-bottom: 2px;
    font-size: 9px;
    letter-spacing: 0.13em;
  }

  .home-hero {
    min-height: 0;
    padding: 14px;
    box-shadow: var(--shadow-sm);
  }

  .home-hero .section-header {
    min-height: 0;
    gap: 0;
  }

  .home-hero h1 {
    font-size: 25px;
  }

  .home-hero::after {
    right: 8px;
    bottom: -12px;
    font-size: 76px;
  }

  .home-hero + .page-grid .upcoming-panel {
    display: none;
  }

  .home-hero + .page-grid .content-stack {
    display: flex;
    flex-direction: column;
  }

  .search-category-tabs {
    display: flex;
    grid-column: 1 / -1;
    gap: 4px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 4px;
    background: var(--surface);
    scrollbar-width: none;
  }

  .search-category-tabs::-webkit-scrollbar {
    display: none;
  }

  .search-category-tabs button {
    flex: 1 0 auto;
    min-height: 32px;
    border: 0;
    border-radius: 6px;
    padding: 0 12px;
    color: var(--muted-strong);
    background: transparent;
    font-size: 12px;
    font-weight: 800;
  }

  .search-category-tabs button[aria-pressed="true"] {
    color: #fff;
    background: var(--accent-deep);
  }

  .search-sections[data-search-category="productions"] .search-people-section,
  .search-sections[data-search-category="productions"] .search-venues-section,
  .search-sections[data-search-category="people"] .search-productions-section,
  .search-sections[data-search-category="people"] .search-venues-section,
  .search-sections[data-search-category="venues"] .search-productions-section,
  .search-sections[data-search-category="venues"] .search-people-section {
    display: none;
  }

  .search-sections .search-results-summary,
  .search-sections .search-section-link {
    display: none;
  }

  .search-productions-section {
    order: 1;
  }

  .search-people-section {
    order: 2;
  }

  .search-venues-section {
    order: 3;
  }

  .index-panel {
    min-height: 0;
  }

  .results-summary {
    max-width: 100%;
    margin: 0 0 8px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    font-size: 11px;
  }

  .search-results,
  .production-grid,
  .venue-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .production-card,
  .person-card,
  .compact-card,
  .venue-card {
    gap: 7px;
    border-radius: 9px;
    padding: 11px;
    box-shadow: none;
  }

  .production-card:hover,
  .person-card:hover,
  .compact-card:hover,
  .venue-card:hover {
    transform: none;
  }

  .production-card-poster {
    height: auto;
    aspect-ratio: 3 / 2;
    margin: -2px -2px 4px;
    border-radius: 7px;
  }

  .production-card-poster.is-fallback {
    display: block;
  }

  .production-card-poster img {
    object-fit: cover;
    object-position: center 35%;
  }

  .production-card-poster.is-fallback .production-card-poster-fallback,
  .production-card-poster.use-mobile-fallback .production-card-poster-fallback {
    display: grid;
    position: absolute;
    inset: 0;
    place-content: center;
    gap: 3px;
    color: var(--accent-deep);
    background:
      linear-gradient(145deg, rgba(228, 241, 237, 0.9), rgba(236, 239, 233, 0.94)),
      var(--surface-soft);
    text-align: center;
  }

  .production-card-poster.use-mobile-fallback img {
    display: none;
  }

  .production-card-poster-fallback strong {
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1;
  }

  .production-card-poster-fallback small {
    color: var(--muted-strong);
    font-size: 10px;
    font-weight: 800;
  }

  .production-card h3,
  .person-card h3,
  .compact-card h3,
  .venue-card h3 {
    font-size: 18px;
  }

  .production-card > p {
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
  }

  .production-card .card-topline > *:not(:first-child),
  .production-card > .chip-row,
  .desktop-card-credits,
  .person-card > .card-topline,
  .desktop-person-productions {
    display: none;
  }

  .production-card > .mobile-card-credits,
  .person-card > .mobile-person-productions {
    display: block;
    overflow: visible;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.55;
    -webkit-line-clamp: unset;
  }

  .mobile-card-credits > span,
  .mobile-person-productions > span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
  }

  .mobile-card-credits a,
  .mobile-person-productions a {
    color: var(--accent-strong);
  }

  .person-card {
    padding: 11px;
  }

  .person-card-identity {
    align-items: flex-start;
  }

  .person-avatar {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    border-radius: 9px;
  }

  .person-card-identity p:not(.mobile-person-role) {
    display: none;
  }

  .person-card-identity .mobile-person-role {
    display: block;
    margin-top: 2px;
    color: var(--muted-strong);
    font-size: 12px;
  }

  .person-card-bio {
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
  }

  .mobile-empty-field {
    display: none !important;
  }

  .site-footer {
    gap: 3px;
    padding: 14px 12px 20px;
    font-size: 11px;
  }

  .mobile-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 12px 8px;
  }

  .mobile-calendar-header h1,
  .mobile-calendar-header p {
    margin: 0;
  }

  .mobile-calendar-header > div {
    min-width: 0;
  }

  .mobile-calendar-header h1 {
    font-size: 22px;
  }

  .mobile-calendar-header .text-button {
    flex: 0 0 auto;
    min-height: 34px;
    border-radius: 8px;
    padding-inline: 9px;
    font-size: 11px;
  }

  .mobile-date-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 12px 10px 16px;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
    scroll-snap-type: inline proximity;
  }

  .mobile-date-strip::-webkit-scrollbar {
    display: none;
  }

  .mobile-date-button {
    display: grid;
    flex: 0 0 62px;
    gap: 1px;
    scroll-snap-align: start;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 4px;
    color: var(--text-soft);
    background: var(--surface);
    text-align: center;
  }

  .mobile-date-button span,
  .mobile-date-button small {
    color: var(--muted);
    font-size: 9px;
  }

  .mobile-date-button strong {
    font-size: 13px;
  }

  .mobile-date-button.selected {
    border-color: var(--accent-deep);
    color: #fff;
    background: var(--accent-deep);
  }

  .mobile-date-button.selected span,
  .mobile-date-button.selected small {
    color: rgba(255, 255, 255, 0.76);
  }

  .calendar-toolbar,
  .calendar-table {
    display: none;
  }

  .mobile-calendar-expanded .calendar-toolbar,
  .mobile-calendar-expanded .calendar-table {
    display: flex;
  }

  .mobile-calendar-expanded .calendar-table {
    display: block;
  }

  .calendar-toolbar {
    min-height: 68px;
    padding: 10px;
  }

  .calendar-toolbar h1 {
    font-size: 19px;
  }

  .calendar-toolbar .text-button {
    min-height: 32px;
    padding-inline: 8px;
  }

  .calendar-day {
    min-height: 60px;
  }

  .day-agenda {
    border-top: 1px solid var(--line);
    padding: 12px;
  }

  .day-agenda .section-header {
    margin-bottom: 12px;
  }

  .day-agenda .section-header .eyebrow,
  .desktop-agenda-date {
    display: none;
  }

  .mobile-agenda-date {
    display: inline;
  }

  .day-agenda .section-header h2 {
    font-size: 16px;
  }

  .city-timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .city-timeline-item + .city-timeline-item {
    margin-top: 16px;
    border-top: 2px solid rgba(65, 105, 99, 0.24);
    padding-top: 18px;
  }

  .city-timeline-marker {
    padding: 0;
  }

  .city-timeline-marker span {
    width: 100%;
    max-width: none;
    border: 0;
    border-radius: 6px;
    padding: 8px 10px;
    background: rgba(228, 241, 237, 0.78);
    line-height: 1.25;
  }

  .city-timeline-marker strong {
    color: var(--accent-deep);
    font-size: 21px;
    font-weight: 900;
  }

  .city-performance-stack {
    gap: 6px;
  }

  .performance-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
    border-radius: 8px;
    padding: 10px;
    box-shadow: none;
  }

  .performance-time-column,
  .performance-card-body {
    display: block;
    min-width: 0;
  }

  .performance-time-column {
    border-right: 1px solid var(--line);
    padding-right: 7px;
  }

  .performance-time-column time {
    font-size: 14px;
    font-weight: 900;
  }

  .desktop-performance-time,
  .desktop-performance-detail {
    display: none;
  }

  .mobile-performance-time,
  .mobile-performance-detail {
    display: block;
  }

  .performance-card-body {
    display: grid;
    gap: 5px;
  }

  .performance-card h3 {
    font-size: 18px;
    line-height: 1.3;
  }

  .performance-card p {
    font-size: 12px;
    line-height: 1.5;
  }

  .cast-preview {
    gap: 2px;
    margin: 0;
    border: 0;
    padding: 0;
  }

  .cast-preview .meta-label,
  .desktop-performance-cast {
    display: none;
  }

  .cast-preview .mobile-performance-cast {
    display: block;
    color: var(--text);
    font-size: 11.5px;
    font-weight: 650;
    line-height: 1.4;
  }

  .mobile-performance-cast .cast-text-entry,
  .mobile-performance-cast .cast-text-separator {
    display: inline;
  }

  .performance-version,
  .performance-meta,
  .performance-card .button-row {
    display: none;
  }

  .profile-panel {
    padding: 16px 13px;
  }

  .mobile-person-portrait {
    display: flex;
    justify-content: center;
    margin: 0 0 16px;
  }

  .mobile-person-avatar {
    display: block;
    width: min(100%, 300px);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
    box-shadow: var(--shadow-sm);
  }

  .mobile-person-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-person-avatar.person-avatar-fallback {
    display: grid;
    place-items: center;
    width: 72px;
    aspect-ratio: 1;
    border-radius: 50%;
    color: var(--accent-deep);
    background: var(--accent-soft);
    box-shadow: none;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 900;
  }

  .profile-panel h1 {
    font-size: 32px;
  }

  .profile-panel > h2 {
    margin: 22px 0 10px;
    padding-top: 14px;
    font-size: 21px;
  }

  .person-bio-block .person-bio-copy {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 8px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    line-height: 1.7;
  }

  .person-bio-block.is-expanded .person-bio-copy {
    display: block;
    overflow: visible;
  }

  .person-bio-block.is-overflowing .person-bio-toggle {
    display: inline-flex;
  }

  .person-bio-toggle {
    align-items: center;
    min-height: 32px;
    border: 0;
    border-bottom: 1px solid currentColor;
    padding: 2px 0;
    color: var(--accent-strong);
    background: transparent;
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-person-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 12px;
  }

  .person-social-link {
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(47, 113, 106, 0.35);
    text-underline-offset: 4px;
  }

  .person-social-link::after {
    margin-left: 4px;
    content: "↗";
    font-size: 11px;
  }

  .profile-panel > .person-section-heading {
    margin-top: 30px;
    border-top: 2px solid rgba(65, 105, 99, 0.2);
    border-radius: 6px;
    padding: 10px;
    color: var(--accent-deep);
    background: rgba(228, 241, 237, 0.72);
  }

  .person-upcoming-timeline {
    gap: 6px;
  }

  .person-upcoming-timeline .record-card {
    gap: 3px;
    min-height: 0;
    margin-left: 7px;
    border-left-width: 2px;
    border-radius: 9px;
    padding: 9px 10px 9px 12px;
  }

  .person-upcoming-timeline .record-card::before {
    top: 13px;
    left: -6px;
    width: 8px;
    height: 8px;
    border-width: 1px;
    box-shadow: 0 0 0 1px rgba(15, 113, 103, 0.16);
  }

  .person-upcoming-timeline .record-card time {
    font-size: 11px;
    line-height: 1.35;
  }

  .person-upcoming-timeline .record-card h3 {
    font-size: 17px;
    line-height: 1.35;
  }

  .person-upcoming-timeline .record-card p {
    color: var(--muted-strong);
    font-size: 11.5px;
    line-height: 1.45;
  }

  .desktop-person-credits,
  .desktop-person-portrait,
  .person-stats-panel {
    display: none;
  }

  .mobile-person-credits {
    display: grid;
    gap: 20px;
  }

  .mobile-person-social-links.mobile-empty-field,
  .mobile-person-credits.mobile-empty-field {
    display: none;
  }

  .person-credit-year-group {
    display: grid;
    gap: 8px;
  }

  .person-credit-year-group > h3 {
    margin: 0;
    border-bottom: 1px solid var(--line-strong);
    padding: 0 2px 6px;
    color: var(--accent-deep);
    font-size: 18px;
  }

  .person-credit-year-list {
    display: grid;
    gap: 7px;
  }

  .person-credit-card {
    padding: 11px 12px;
  }

  .person-credit-card h4 {
    margin: 0 0 5px;
    font-size: 15px;
    line-height: 1.45;
  }

  .person-credit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 8px;
    margin: 0;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.5;
  }

  .person-credit-role {
    color: var(--accent-strong);
    font-weight: 750;
  }

  .person-credit-role::before {
    color: var(--muted);
    content: "·";
    margin-right: 8px;
  }

  .person-credit-role.is-actor-only {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
  }

  .person-collaborators-panel {
    padding: 14px 13px;
  }

  .person-collaborators-panel h2 {
    margin-bottom: 8px;
    font-size: 18px;
  }

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

  .person-collaborator-links .link-chip {
    display: block;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 7px 1px;
    color: var(--accent-strong);
    background: transparent;
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-person-collaborators {
    display: none;
  }

  .mobile-person-collaborators {
    display: grid;
  }

  .mobile-person-collaborators > .link-chip:nth-child(n + 9) {
    display: none;
  }

  .person-collaborators-panel.is-expanded .mobile-person-collaborators > .link-chip {
    display: block;
  }

  .person-collaborator-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-top: 10px;
    border: 0;
    border-bottom: 1px solid currentColor;
    padding: 2px 0;
    color: var(--accent-strong);
    background: transparent;
    font-size: 13px;
    font-weight: 800;
  }

  .profile-panel > .chip-row .tag:nth-child(n + 3) {
    display: none;
  }

  .profile-panel .person-links {
    gap: 4px 10px;
  }

  .profile-panel .credit-chip {
    display: inline;
    width: auto;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    font-size: 13px;
    line-height: 1.6;
  }

  .profile-panel .credit-chip::after {
    color: var(--muted);
    content: "、";
  }

  .profile-panel .credit-chip:last-child::after {
    content: "";
  }

  .profile-panel .credit-chip strong {
    overflow: visible;
    color: var(--text);
    text-overflow: clip;
    white-space: normal;
  }

  .profile-panel .credit-chip span {
    margin-left: 2px;
    font-size: 11px;
  }

  .version-people-toggle {
    display: none;
  }

  .version-people-block,
  .version-performance-block {
    gap: 9px;
    padding: 12px;
  }

  .version-card-header {
    padding: 12px;
  }

  .version-summary {
    gap: 4px;
  }

  .version-summary span:nth-child(n + 3) {
    display: none;
  }

  .profile-side {
    gap: 10px;
  }

  .poster-block,
  .portrait-block {
    min-height: 190px;
    border-radius: 10px;
    padding: 14px;
  }
}

@media (min-width: 769px) {
  .search-page-grid .filters {
    position: sticky;
    top: 94px;
    gap: 12px;
    padding: 18px;
  }

  .search-page-grid .filters-heading {
    padding-bottom: 10px;
  }

  .search-page-grid .filter-count {
    width: auto;
    min-width: 0;
    height: auto;
    border-radius: 9px;
    padding: 6px 9px;
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
  }

  .search-page-grid .field {
    gap: 5px;
  }

  .search-page-grid input,
  .search-page-grid select {
    min-height: 42px;
    border-radius: 9px;
    font-size: 13px;
  }

  .search-page-grid #globalSearch::placeholder {
    font-size: 12px;
    opacity: 0.88;
  }

  .search-page-grid .quick-stats {
    gap: 6px;
  }

  .search-page-grid .stat {
    border-radius: 10px;
    padding: 7px 5px;
  }

  .search-page-grid .stat strong {
    font-size: 20px;
  }

  .search-page-grid .stat span {
    font-size: 10px;
  }

  .home-hero {
    min-height: 176px;
    padding: 24px 30px;
  }

  .home-hero .section-header {
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    min-height: 126px;
  }

  .home-hero .section-header > div {
    flex: 0 1 600px;
  }

  .home-hero h1 {
    font-size: clamp(38px, 4.6vw, 54px);
  }

  .home-hero .section-header > p {
    flex: 0 1 430px;
    font-size: 14px;
    line-height: 1.65;
  }

  .search-page-grid .upcoming-panel {
    padding: 18px;
  }

  .search-page-grid .upcoming-panel .section-header {
    margin-bottom: 11px;
  }

  .search-page-grid .upcoming-panel .record-list {
    gap: 7px;
  }

  .search-page-grid .upcoming-panel .record-card {
    gap: 6px;
    border-radius: 11px;
    padding: 12px 14px;
  }

  .search-page-grid .upcoming-panel .record-card h3 {
    font-size: 20px;
  }

  .search-page-grid .upcoming-panel .record-card p {
    line-height: 1.45;
  }

  .search-page-grid .upcoming-panel .cast-preview {
    gap: 4px;
    margin-top: 1px;
    padding-top: 7px;
  }

  .upcoming-cast-list {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
  }

  .upcoming-result-count {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }
}

@media (min-width: 981px) {
  .search-page-grid {
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 18px;
  }

  .search-page-grid .filters {
    top: 94px;
    gap: 12px;
    padding: 18px;
  }

  .search-page-grid .filters-heading {
    padding-bottom: 10px;
  }

  .search-page-grid .filters-heading h2 {
    font-size: 21px;
  }

  .search-page-grid .filter-count {
    width: auto;
    min-width: 0;
    height: auto;
    border-radius: 9px;
    padding: 6px 9px;
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
  }

  .search-page-grid .field {
    gap: 5px;
  }

  .search-page-grid input,
  .search-page-grid select {
    min-height: 42px;
    border-radius: 9px;
    font-size: 13px;
  }

  .search-page-grid #globalSearch::placeholder {
    font-size: 12px;
    opacity: 0.88;
  }

  .search-page-grid .quick-stats {
    gap: 6px;
  }

  .search-page-grid .stat {
    border-radius: 10px;
    padding: 7px 5px;
  }

  .search-page-grid .stat strong {
    font-size: 20px;
  }

  .search-page-grid .stat span {
    font-size: 10px;
  }
}

@media (min-width: 769px) {
  .production-index-card {
    gap: 11px;
    padding: 18px;
  }

  .production-index-card .production-card-poster {
    height: auto;
    aspect-ratio: 3 / 2;
    margin: -2px -2px 8px;
  }

  .production-index-card .production-card-poster img {
    object-fit: cover;
    object-position: center 35%;
  }

  .production-index-card h3 {
    font-size: clamp(23px, 2vw, 28px);
  }

  .production-index-card > p {
    font-size: 13px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
  }

  .production-index-card .card-topline > .tag:nth-child(n + 2),
  .production-index-card .production-organization-meta,
  .production-index-card > .chip-row > .role-chip:nth-child(n + 3) {
    display: none;
  }

  .production-index-card > .chip-row:empty {
    display: none;
  }

  .production-index-card .remaining-crew-count {
    align-self: center;
    padding: 5px 2px;
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 800;
  }
}

@media (min-width: 1440px) {
  .production-index-page .production-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
