:root { --gutter: var(--editorial-gutter); }

.f24-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.f24-icon-bank { position: absolute; width: 0; height: 0; overflow: hidden; }
.theme-shortcut { display: inline-flex; align-items: center; gap: 6px; }
.theme-shortcut .f24-icon, .row-btn .f24-icon { width: 18px; height: 18px; }
.row-btn .f24-icon { color: var(--accent); }
.tab[aria-current="page"] .f24-icon { stroke-width: 1.9; }

#view-brand #about { padding-bottom: 0; }
.brand-photo { margin: 22px 0 0; }
.brand-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 2.4;
  object-fit: cover;
  object-position: 50% 46%;
  border-radius: 12px;
}
.brand-photo figcaption { margin-top: 8px; color: var(--fg-muted); font-size: .8rem; }
.reading-notes h2 { margin-bottom: 20px; }
.reading-notes-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(14px,2.5vw,32px); }
.reading-note { min-width: 0; border-top: 1px solid var(--line); padding-top: 12px; }
.reading-note img { width: 100%; height: auto; aspect-ratio: 1.8; object-fit: cover; border-radius: 7px; margin-bottom: 12px; }
.reading-note h3 { margin: 0 0 8px; font-size: clamp(1.15rem,2.2vw,1.55rem); line-height: 1.35; }
.reading-note p { color: var(--fg-muted); font-size: .9rem; line-height: 1.7; }
.reading-note a { display: inline-flex; min-height: 44px; align-items: center; gap: .35em; text-underline-offset: 4px; }
.reading-note a .f24-icon { width: 16px; height: 16px; }

@media (max-width: 560px) {
  .brand-photo img { aspect-ratio: 1.7; }
  .reading-notes-grid { grid-template-columns: minmax(0,1fr); }
  .reading-note { display: grid; grid-template-columns: minmax(82px,29%) minmax(0,1fr); align-items: start; gap: 10px; }
  .reading-note img { aspect-ratio: 1; margin: 0; }
  .reading-note p { font-size: .82rem; margin-bottom: 0; }
}

/* Public editorial shell. */
:root {
  --gutter: var(--editorial-gutter);
  --maxw: 1440px;
  --tabbar-h: 60px;
  --radius-media: 2px;
  --font-body: var(--editorial-body);
}
.app-header .wrap { justify-content: space-between; }
.header-place { color: var(--fg-muted); font-size: .75rem; }
.app-header { background: var(--bg); }
.brand-name { letter-spacing: -.035em; font-size: 1.15rem; }
.brand-mark { width: 28px; height: 28px; }
.tab[aria-current="page"] > span:first-of-type {
  text-decoration: underline 2px var(--accent);
  text-underline-offset: .28em;
}
.tabbar { background: var(--bg); }
.tabbar .tab { height: var(--tabbar-h); }
.tabbar .tab-dot { display: none; }
#view-screenings .hero {
  margin-top: 24px;
  padding: 0 0 clamp(24px, 5vw, 60px);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  overflow: visible;
}
#view-screenings .hero-grid {
  grid-template: 'poster copy' / minmax(150px, min(29%, 340px)) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 7vw, 110px);
  padding: 0;
}
#view-screenings .hero-poster {
  display: block;
  aspect-ratio: auto;
  min-height: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}
#view-screenings .hero-poster img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
#view-screenings .hero-content { display: block; grid-area: copy; color: var(--fg); }
#view-screenings .hero-status {
  display: block;
  color: var(--accent);
  margin: 0 0 18px;
  font-size: .875rem;
}
#view-screenings .hero-status[hidden] { display: none; }
#view-screenings .hero-film {
  margin: 0;
  font-size: clamp(3rem, 7.75vw, 7.2rem);
  line-height: 1.04;

}
#view-screenings .hero-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .62fr);
  max-width: 34rem;
  border-block: 1px solid var(--line);
  padding: 11px 0;
  margin: 17px 0;
  color: var(--fg);
  font-size: .925rem;
  font-weight: 600;
}
#view-screenings .hero-meta .meta-row { display: block; min-width: 0; }
#view-screenings .hero-meta .meta-k {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#view-screenings .hero-ctas { display: block; }
#view-screenings .hero-ctas .btn { border-radius: 3px; }
#view-screenings .hero + .section { padding-top: 20px; }
#view-screenings .seg { border-radius: 4px; }
#view-screenings .date-rail {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  padding: 4px 3px 10px;
  margin: 0 -3px 12px;
}
.date-rail button {
  border: 1px solid var(--line);
  padding-inline: 12px;
  border-radius: 4px;
  flex: none;
  min-height: 44px;
  background: transparent;
  cursor: pointer;
}
.date-rail button:hover { border-color: var(--accent); }
#view-screenings .list-row { overflow-wrap: anywhere; }
#view-screenings .lr-main { min-width: 0; }
#view-screenings .lr-hall { display: block; }
#view-screenings .cal-cell { border-radius: 4px; }
#view-screenings .cal-cell.today .daynum { background-color: var(--action); color: var(--color-accent-ink); }
#view-brand .about-stats { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; container-type: inline-size; }
#view-brand .about-stats .stat { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; padding-inline: 0; }
#view-brand .about-stats .k { font-size: 1rem; font-size: clamp(.875rem,5.25cqw,2.4rem); }
.brand-photo img { height: auto; }
.reading-note img { border-radius: var(--radius-media); }
.reading-note p { font-size: .95rem; }
#view-community .play-shell h1 { font-size: clamp(2.25rem,5vw,4rem); }
#view-community .play-feature { border-radius: var(--radius-media); }
#view-community .play-games-grid .play-game-card { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
#view-profile .section + .section, #view-settings .section + .section {
  margin-top: 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
#view-profile .play-profile-link { margin: 8px 0 0; }
#view-settings .list { list-style: none; padding: 0; max-width: 42rem; }
#view-settings .row-btn {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  text-align: left;
  padding: 8px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--fg);
}
#view-settings .row-btn:is(button) { cursor: pointer; }
#view-settings .row-btn .val, #view-settings .row-btn .seg { margin-left: auto; }
#view-settings .seg button { min-width: 44px; min-height: 44px; padding-inline: 12px; }
#view-settings .section h1 { font-size: clamp(2rem,4vw,3.25rem); }

@media (max-width: 600px) {
  :root { --tabbar-h: 58px; }
  #view-screenings .list-row { grid-template-columns: 44px minmax(0,1fr); }
  #view-screenings .list-row .btn { display: none; }
  #view-screenings .toolbar { display: flex; flex-wrap: wrap; }
  #view-screenings .monthnav { width: 100%; }
  #view-screenings .cal-cell { min-height: 54px; }
  #view-brand .about-grid { gap: 16px; }
  .reading-note p { font-size: .9rem; }
}

body.dialog-open { overflow: hidden; }
dialog.sheet {
  inset: 0;
  margin: auto;
  width: min(90vw, 680px);
  max-width: none;
  max-height: 86vh;
  max-height: 86dvh;
  border-radius: 8px;
  color: var(--fg);
  animation-duration: var(--f24-motion-base,280ms);
}
dialog.sheet::backdrop { background: rgb(0 0 0 / .7); }
dialog.sheet .sheet-head { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
dialog.sheet .sheet-head h2 { margin: 0; font-size: clamp(1.25rem, 3vw, 2rem); }
dialog.sheet .sheet-close { margin-left: auto; flex: none; }
dialog.sheet .day-item .btn { min-height: 44px !important; }
dialog.sheet .day-actions .btn { color: var(--fg); border: 1px solid var(--line); }
dialog.sheet #booking-sub { color: var(--fg-muted); }
dialog.sheet #booking-feedback:empty { display: none; }
@media (max-width: 720px) {
  dialog.sheet {
    width: 100%;
    /* 自适应内容高度，避免短内容底部大片空白；上限留出顶部空间并保证长内容可滚动 */
    height: auto;
    /* inset:0 会因 top:0+bottom:0 把弹层拉伸成满高；改为只锚定底部、顶部 auto，弹层即贴合内容 */
    inset: auto 0 0 0;
    max-height: calc(100dvh - max(24px, env(safe-area-inset-top)));
    max-width: 100%;
    margin: auto 0 0;
    border: 0;
    border-radius: 0;
    padding: max(12px,env(safe-area-inset-top)) var(--gutter) max(24px,env(safe-area-inset-bottom));
  }
  /* 底部收束：内容结束后给出明确视觉闭环，避免视线无处落脚 */
  dialog.sheet::after {
    content: "";
    display: block;
    height: max(16px, env(safe-area-inset-bottom));
  }
}

#hero-book[hidden], #calendar-view[hidden], #monthnav[hidden],
#view-screenings .list[hidden], #view-screenings .date-rail[hidden] { display: none; }
#view-screenings .list-row:focus-visible, .date-rail button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
@media (min-width: 821px) {
  #view-screenings .schedule-group.upcoming { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
  #view-screenings .upcoming .list-row {
    grid-template-columns: 3rem minmax(0,1fr);
    align-items: start;
    column-gap: 12px;
  }
  #view-screenings .upcoming .lr-date { grid-row: 1 / span 2; }
  #view-screenings .upcoming .lr-meta { grid-column: 2; }
  #view-screenings .upcoming .btn { display: none; }
}


#view-profile .play-profile-link {
  margin: 0;
  border: 0;
  grid-template-columns: minmax(0, 1fr);
  padding-inline: calc(1.4rem + var(--space-2)) 0;
  border-radius: 0;
  background: transparent;
}
#view-community .play-more { margin: 10px 0 0; }
#view-community .play-more summary {
  min-height: 44px;
  padding-block: 9px;
  cursor: pointer;
  color: var(--fg);
}

html { scroll-padding-block: calc(var(--header-h) + 12px) calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px); }

@media (min-width: 821px) {
  body{ padding-bottom: 36px; }
  .app-header .tabbar {
    position: static;
    border: 0;
    transform: none;
    padding: 0;
    border-top: 0;
    backdrop-filter: none;
  }
  .tabbar-inner { gap: clamp(18px, 3vw, 42px); }
  .tab { white-space: nowrap; font-size: .875rem; }
  .tab svg { display: none; }
}
@media (max-width: 620px) {
  #view-screenings .hero { margin-top: 17px; }
  #view-screenings .hero-status { margin-bottom: 12px; }
  #view-screenings .hero-grid { grid-template-columns: minmax(112px, 34%) minmax(0, 1fr); align-items: start; gap: 14px; }
  #view-screenings .hero-poster { width: 100%; margin-inline: 0; }
  #view-screenings .hero-film { font-size: clamp(2rem, 10vw, 3.35rem); }
  #view-screenings .hero-meta { margin: 10px 0; padding: 7px 0; font-size: .83rem; }
  #view-screenings .hero-ctas .btn { width: 100%; }
}
@media (max-width: 350px), (max-width: 620px) and (max-height: 635px) {
  body{ --gutter: 12px; }
  #view-screenings .hero-grid {
    grid-template: 'poster copy' / minmax(86px, 36%) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }
  #view-screenings .hero-poster { width: 100%; }
  #view-screenings .hero-film { font-size: 2rem; }
  #view-screenings .hero-meta { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  #view-screenings .hero-ctas .btn { padding-inline: 8px; font-size: .83rem; }
}

#view-brand #about h2 {
  max-width: 13ch;
  font-size: clamp(2.45rem, 6vw, 6rem);
  line-height: 1.08;
}
#view-brand .brand-photo {
  margin: 18px 0 0;
  max-width: 920px;
}
#view-brand .brand-photo img { border-radius: 0; }
#view-brand .brand-photo figcaption { color: var(--fg-muted); }
#view-brand .reading-note {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding-inline: 0;
}
#view-profile { max-width: 50rem; }
#view-profile > .section { padding-block: 21px; border-top: 0; }
#view-profile > .section + .section { border-top: 0; }
#view-profile > .section:first-child { padding-block: 24px 12px; }
#view-profile h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); margin-bottom: 5px; }
#view-profile h2 { margin-bottom: 6px; }
#view-profile .profile-settings button {
  max-width: none;
  border-block: 1px solid var(--line);
  border-radius: 0;
}
@media (max-width: 400px) {
  #view-profile > .section { padding-block: 9px; }
  #view-profile > .section:first-child { padding-block: 18px 4px; }
  #view-profile .row-btn { min-height: 48px; }
}

#view-community .play-shell { max-width: 49rem; }
#view-community .play-shell h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); }
#view-community .play-feature {
  border: 0;
  border-block: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  margin: 10px 0 0;
  padding: 16px 0;
}
#view-community .play-feature h3 {
  color: var(--accent);
  font-family: var(--font-body);
  font-size: .875rem;
}
#view-community .play-feature > p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2.45rem);
  line-height: 1.25;
}
#view-community .play-feature .play-primary {
  background: color-mix(in srgb, var(--action) 89%, #000) !important;
  border-color: transparent !important;
  border-radius: 3px;
  color: white !important;
}
#view-community .play-nav { margin-block: 12px 0; }
#view-community .play-nav button { border-radius: 3px; margin: 0; }
#view-community .play-shell .play-date { margin-block: 9px 1px; }
#view-community .play-shell .play-date .play-field { margin: 0; }

#view-screenings .hero-poster.no-poster {
  display: grid;
  place-items: center;
  min-height: 145px;
  border: 1px solid var(--line);
  background: var(--surface);
}
#view-screenings .hero-poster.no-poster::after { content: '暂无海报'; }
#view-screenings .hero-poster img[hidden] { display: none; }
#view-screenings .hero:has(#hero-book[hidden]) .hero-grid { grid-template: 'copy' / 1fr; }
#view-screenings .hero:has(#hero-book[hidden]) :is(.hero-poster,.hero-meta,.hero-ctas) { display: none; }
#view-screenings .hero:has(#hero-book[hidden]) .hero-film { font-size: clamp(2rem,5vw,4rem); }

.selected-day[hidden],
.all-screenings[hidden],
.all-screenings summary[hidden] { display: none; }
.selected-day h3 { margin-block: 8px; }
.all-screenings > summary { min-height: 44px; cursor: pointer; padding: 9px 0; }
#date-rail [aria-pressed="true"] { border-color: var(--accent); font-weight: 700; }
@media (max-width: 620px) {
  #view-screenings .selected-day .list-row {
    grid-template-columns: 58px minmax(0,1fr);
    align-items: start;
    gap: 6px 12px;
  }
  #view-screenings .selected-day .lr-date { display: none; }
  #view-screenings .selected-day .lr-main { display: contents; }
  #view-screenings .selected-day .lr-preview {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 58px;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 0;
  }
  #view-screenings .selected-day :is(.lr-title,.lr-meta) { grid-column: 2; }
  #view-screenings .selected-day .list-row:not(:has(.lr-preview)) { grid-template-columns: minmax(0,1fr); }
  #view-screenings .selected-day .list-row:not(:has(.lr-preview)) :is(.lr-title,.lr-meta) { grid-column: 1; }
}


/* The screening cover uses the same column tracks as the programme below. */
:root { color-scheme: light; --maxw: 1280px; }
.app-header,.tabbar { backdrop-filter: none; }
#view-screenings .hero { margin-block-start: 30px; padding-block-end: 48px; }
#view-screenings .hero-grid {
  grid-template: none / repeat(12,minmax(0,1fr));
  gap: 24px;
  align-items: center;
}
#view-screenings .hero-poster { grid-column: 1 / span 4; max-width: 360px; }
#view-screenings .hero-content { grid-area: auto / 6 / auto / -1; }
#view-screenings .hero-film { font-size: clamp(2.5rem,6.6vw,6rem); line-height: 1.06; }
#view-screenings .hero-meta { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 24px; max-width: 34rem; }
#view-screenings .hero-meta .meta-row { overflow-wrap: anywhere; }
#view-screenings .hero-admission { color: var(--color-muted); font-weight: 600; margin: 0 0 14px; }
#view-screenings .hero-ctas { display: flex; gap: 8px; }
#view-screenings .hero-ctas .btn,#booking .reg-btn { min-height: 44px; border-radius: var(--editorial-radius); }
#view-screenings .btn-primary,#booking .reg-btn { background: var(--color-accent); color: var(--color-accent-ink); }
#view-screenings .btn-primary:hover,#booking .reg-btn:hover { background: var(--editorial-red-hover); }
#view-screenings .hero-ctas .btn-ghost { background: transparent; border-color: var(--color-ink); color: var(--color-ink); }
#view-screenings .hero + .section { padding-block-start: 48px; }
#prog-title { margin-bottom: 16px; scroll-margin-block-start: 10px; }
#prog-title:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
#view-screenings .hero:has(#hero-book[hidden]) .hero-grid { grid-template: none / 1fr; }
#view-screenings .hero:has(#hero-book[hidden]) .hero-content { grid-area: auto; }
#view-screenings .hero:has(#hero-book[hidden]) .hero-admission { display: none; }
@media (min-width: 621px) and (max-width: 1023px) {
  #view-screenings .hero-grid { grid-template: none / repeat(8,minmax(0,1fr)); gap: 20px; }
  #view-screenings .hero-poster { grid-column: 1 / span 3; }
  #view-screenings .hero-content { grid-column: 5 / -1; }
}
@media (max-width: 620px) {
  body { --gutter: var(--editorial-gutter); }
  #view-screenings .hero { margin-block-start: 18px; padding-block-end: 32px; }
  #view-screenings .hero + .section { padding-block-start: 32px; }
  #view-screenings .hero-grid { grid-template: none / repeat(4,minmax(0,1fr)); gap: 12px; align-items: start; }
  #view-screenings .hero-poster { grid-column: 1 / span 2; }
  #view-screenings .hero-content { grid-column: 3 / -1; }
  #view-screenings .hero-film { font-size: clamp(1.65rem,8.1vw,2.2rem); }
  #view-screenings .hero-meta { grid-template-columns: minmax(0,1fr); gap: 3px; margin-block: 8px; padding-block: 6px; }
  #view-screenings .hero-admission { font-size: .8rem; margin-bottom: 8px; }
  #view-screenings .hero-ctas { flex-direction: column; gap: 6px; }
  #view-screenings .hero-ctas .btn { padding-inline: 6px; font-size: .83rem; }
}

/* Interior pages follow the cover's rules and the archive's reading order. */
#view-brand #about { display: grid; gap: 18px 32px; }
#view-brand #about > h2 { grid-column: 1 / -1; margin: 0 !important; }
#view-brand #about .brand-photo { margin: 0; }
#view-brand #about .about-grid { margin: 0 !important; display: grid; grid-template-columns: minmax(0,1fr); align-content: start; }
#view-brand .about-grid .t-body { max-width: 55ch; }
#view-brand .reading-notes-grid { display: block; }
#view-brand .reading-note { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 16px; padding: 16px 0; }
#view-brand .reading-note img { width: 84px; max-height: none; border-radius: 0; }
#view-brand :is(.fchip,.btn-clear,.btn-more,.tag) { border-radius: var(--editorial-radius); }
#view-brand .achip button .f24-icon { width: 14px; height: 14px; }
#view-brand .fchip .cnt { color: var(--color-muted); opacity: 1; }
#view-brand .fchip[aria-pressed="true"] { background: var(--color-accent); color: var(--color-accent-ink); }
#view-brand .fchip[aria-pressed="true"] .cnt { color: var(--color-accent-ink); }
#view-community .play-games-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
#view-community .play-nav { gap: 4px 12px; }
#view-community .play-nav button:not([aria-pressed="true"]) { background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: .23em; }
#view-community .play-feature .play-primary { background: var(--color-accent) !important; color: var(--color-accent-ink) !important; }
#view-profile .row-btn { border-radius: 0; }
#view-settings .seg { border-radius: var(--editorial-radius); }
#view-settings .seg button[aria-pressed="true"] { background: var(--color-accent); color: var(--color-accent-ink); }
@media (min-width: 821px) {
  #view-brand #about { grid-template-columns: minmax(0,7fr) minmax(0,5fr); align-items: start; }
}

/* =========================================================
   第四轮 · 首页杂志封面式（方案 A）
   来源：audit/visual-round4/homepage-alternatives/cover.css
   已去掉预览开关 html[data-round4]，剔除 programme 分支。
   仅保留 magazine 构图所需规则。
   ========================================================= */
#view-screenings {
  --cover-edge: clamp(20px, 3vw, 48px);
  --cover-fg: var(--color-dark-text);
  --cover-muted: var(--color-dark-muted);
}
#view-screenings .r4-cover {
  --cover-fg: var(--color-dark-text);
  --cover-muted: var(--color-dark-muted);
  position: relative;
  display: grid;
  grid-template-areas: 'title title title title title title title poster poster poster poster poster'
                       'info info info info info info info poster poster poster poster poster';
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  column-gap: clamp(8px, 1.5vw, 24px);
  align-items: start;
  margin: 24px 0 0;
  padding: var(--cover-edge);
  min-width: 0;
  overflow: visible;
  color: var(--cover-fg);
  background: var(--color-dark-surface);
}
#view-screenings .r4-cover .r4-grid { display: contents; }
#view-screenings .r4-cover .r4-information { grid-area: info; min-width: 0; align-self: start; padding-block-start: 24px; }
#view-screenings .r4-cover .r4-title-band {
  grid-area: title;
  min-width: 0;
  padding-block: 8px 24px;
  border-block-end: 1px solid var(--color-dark-line);
}
#view-screenings .r4-cover .hero-film {
  font: 600 clamp(3.25rem, 5.25vw, 4.75rem)/1.06 var(--font-display);
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  margin: 0;
}
#view-screenings .r4-cover .hero-poster {
  grid-area: poster;
  align-self: start;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: unset;
  aspect-ratio: auto;
  background: var(--color-dark-surface);
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}
#view-screenings .r4-cover .hero-poster img {
  max-height: min(49vh, 480px);
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
#view-screenings .r4-cover .hero-poster.no-poster { aspect-ratio: 2 / 3; }
#view-screenings .r4-cover .hero-status {
  color: var(--color-accent);
  border: 0;
  padding: 0;
  margin: 14px 0 0;
  font-size: .875rem;
  letter-spacing: .08em;
  line-height: 1.4;
}
#view-screenings .r4-cover .r4-session {
  color: inherit;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  font: 400 clamp(.9rem, 1.25vw, 1.0625rem)/1.45 var(--editorial-body);
}
#view-screenings .r4-cover .r4-session .meta-k {
  display: block;
  position: static;
  width: auto;
  height: auto;
  clip-path: none;
  clip: auto;
  overflow: visible;
  color: var(--cover-muted);
  font: 400 .75rem/1.4 var(--editorial-body);
  margin: 0 0 4px;
}
#view-screenings .r4-cover .hero-admission {
  color: var(--cover-fg);
  font: 600 .9375rem/1.4 var(--editorial-body);
  margin: 16px 0 12px;
}
#view-screenings .r4-cover .hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
}
#view-screenings .r4-cover .hero-ctas .btn {
  display: inline-flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding-inline: 14px;
  letter-spacing: 0;
  font: 600 .9375rem/1.3 var(--editorial-body);
  white-space: normal;
  text-align: start;
}
#view-screenings .r4-cover .hero-ctas .btn[hidden] { display: none; }
#view-screenings .r4-cover .hero-ctas .btn-primary { border: 1px solid var(--color-accent); }
#view-screenings .r4-cover .hero-ctas .btn-ghost {
  flex: 0 0 auto;
  width: auto;
  border: 0;
  padding-inline: 0;
  background: transparent;
  color: var(--cover-fg);
  text-decoration: underline;
  text-underline-offset: 5px;
  font-weight: 400;
}
#view-screenings .r4-cover:has(#hero-book[hidden]) {
  grid-template: 'title' / minmax(0, 1fr);
  padding: var(--cover-edge);
}
#view-screenings .r4-cover:has(#hero-book[hidden]) .r4-information { display: none; }
#view-screenings .r4-cover + .section { padding-block-start: 32px; }
#view-screenings #prog-title { font-weight: 600; font-size: clamp(1.5rem, 2.8vw, 2.125rem); }
#view-screenings #selected-day-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* 封面色彩角色延伸到遗留取值选择器 */
#view-screenings .r4-cover .hero-meta :is(#hero-date,#hero-time,#hero-venue,#hero-hall) {
  color: var(--cover-fg);
  font-weight: 400;
}
#view-screenings .r4-cover :is(button,a):focus-visible { outline-color: var(--color-focus-inverse); }

@media (min-width: 721px) and (max-width: 1100px) {
  #view-screenings .r4-cover:not(:has(#hero-book[hidden])) {
    grid-template-areas: 'title title title title title poster poster poster' 'info info info info info poster poster poster';
    grid-template-columns: repeat(8,minmax(0,1fr));
  }
}
@media (max-width: 720px) {
  #view-screenings .r4-cover:not(:has(#hero-book[hidden])) {
    grid-template-areas: 'poster poster title title' 'poster poster info info';
    grid-template-columns: repeat(2,minmax(0, 22fr)) repeat(2,minmax(0, 28fr));
    gap: 0 8px;
    align-items: start;
    padding: 16px 12px;
  }
  #view-screenings .r4-cover .hero-poster { align-self: start; margin-block: 0; }
  #view-screenings .r4-cover .hero-poster img { max-height: none; }
  #view-screenings .r4-cover .hero-film { font-size: clamp(1.75rem, 8vw, 2.375rem); line-height: 1.08; }
  #view-screenings .r4-cover .r4-title-band { display: block; padding-block: 0 8px; border-top: 0; }
  #view-screenings .r4-cover .hero-status { margin-block: 6px 0; font-size: .75rem; }
  #view-screenings .r4-cover .r4-information { display: block; padding-block-start: 8px; }
  #view-screenings .r4-cover .r4-session { grid-template-columns: minmax(0, 1fr); gap: 3px; font-size: .8125rem; row-gap: 3px; }
  #view-screenings .r4-cover .r4-session .meta-row { padding: 0; border: 0; font-size: inherit; }
  #view-screenings .r4-cover .r4-session .meta-k {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  #view-screenings .r4-cover .hero-admission { font-size: .8125rem; margin: 8px 0; }
  #view-screenings .r4-cover .hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
  }
  #view-screenings .r4-cover .hero-ctas .btn { justify-content: space-between; padding-inline: 8px; font-size: .8125rem; gap: 4px; }
  #view-screenings .r4-cover .hero-ctas .btn-ghost { padding-inline: 0; }
  #view-screenings .r4-cover .hero-ctas .btn-primary { width: 100%; }
  #view-screenings .r4-cover .hero-ctas .btn svg { width: 14px; height: 14px; flex: 0 0 auto; }
}

@media (prefers-reduced-motion: no-preference) {
  dialog#booking.sheet[open] { animation: r4-sheet-in 260ms cubic-bezier(.22,.8,.24,1) both; }
  @keyframes r4-sheet-in {
    from { opacity: .82; translate: 0 8px; }
    to { opacity: 1; translate: 0 0; }
  }
}

/* =========================================================
   第四轮 · 「我的」页票根收藏空间（方案 A 视觉语言延伸）
   目标：把票根收藏从"功能入口"提为"带印刷质感的视觉主体"。
   仅 CSS，不改 DOM/ID/data-action/data-jump，零功能风险。
   ========================================================= */
#view-profile .profile-wallet .list { display: block; list-style: none; margin: 0; padding: 0; }
#view-profile .profile-wallet .row-btn {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 96px;
  padding: 20px 24px;
  background: var(--color-surface);
  color: var(--color-ink);
  border: 1px solid var(--color-line);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 12px 28px -16px rgb(0 0 0 / .28);
  text-align: start;
}
/* 票根中缝撕裂线（齿孔），把"票根"从文字概念变成视觉语言 */
#view-profile .profile-wallet .row-btn::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: 92px;
  width: 0;
  border-right: 1px dashed color-mix(in srgb, var(--color-line) 80%, transparent);
}
/* 齿孔上下两个半圆切口 */
#view-profile .profile-wallet .row-btn::after {
  content: "";
  position: absolute;
  right: 86px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  box-shadow: inset 0 0 0 3px var(--color-surface);
}
#view-profile .profile-wallet .row-btn::before { background:
  radial-gradient(circle at 50% 50%, transparent 4px, #000 4.5px) 50% 0 / 100% 14px;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 4px, #000 4.5px) 50% 0 / 100% 14px;
}
#view-profile .profile-wallet .row-btn > .f24-icon {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}
#view-profile .profile-wallet .row-btn > span:not(.val):not(.f24-icon) {
  font: 600 clamp(1.05rem, 1.6vw, 1.25rem)/1.3 var(--font-display);
  letter-spacing: -.01em;
}
#view-profile .profile-wallet .row-btn .val {
  justify-self: end;
  padding-left: 24px;
  font: 600 .9375rem/1.2 var(--editorial-body);
  font-variant-numeric: tabular-nums;
  color: var(--color-muted);
  white-space: nowrap;
}
#view-profile .profile-wallet .row-btn:hover { border-color: var(--color-accent); }
#view-profile .profile-wallet .row-btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* =========================================================
   第四轮 · 放映节目单层级重排（任务书 §11：影片为主、保留真实海报作锚点）
   纯 CSS：放大海报缩略图、压低日期数字权重、提升片名。
   不改 DOM / 数据 / 事件；"待确认"为真实数据回退，不伪造填充。
   ========================================================= */
/* 海报从 44px 提到 64px，承担节目单视觉锚点 */
#view-screenings .lr-preview { width: 64px; }
/* 日期数字从 1.5rem 压到 1.15rem，退为辅助信息 */
#view-screenings .lr-date .d { font-size: 1.15rem; }
/* 片名微升，与放大的海报形成"影片为主"层级 */
#view-screenings .lr-title { font-size: 1.2rem; }
/* 行最小高度随海报放大，保持垂直居中节奏 */
#view-screenings .list-row { min-height: 80px; }
@media (max-width: 480px) {
  #view-screenings .lr-preview { width: 52px; }
  #view-screenings .list-row { min-height: 68px; }
}

/* 日期数字再压一档（迭代2）：确保"海报/片名为主、日期为辅"层级 */
#view-screenings .lr-date .d { font-size: 1rem; }
#view-screenings .lr-date .m { font-size: .7rem; }

/* =========================================================
   第四轮 · 品牌档案筛选器 → 文化机构资料库索引质感（任务书 §12）
   纯 CSS：去笨重圆角容器改档案索引式上下细线；筛选片药丸→锐利边角（卡片目录标签）。
   不改 DOM / 筛选逻辑 / data 属性。
   ========================================================= */
/* 容器：去掉笨重圆角框，改档案索引页的上下细线 + 去毛玻璃 */
#view-brand .filterbar {
  border: 0;
  border-block: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 18px 0 14px;
}
/* 筛选片：药丸 → 锐利边角，像卡片目录的索引标签 */
#view-brand .fchip {
  border-radius: 2px;
  letter-spacing: .01em;
}
/* 计数：等宽数字强化"索引编号"感 */
#view-brand .fchip .cnt {
  font-family: var(--font-latin);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
/* 已选片同步锐利，保持一套语言 */
#view-brand .achip { border-radius: 2px; }
#view-brand .achip button { border-radius: 2px; }
/* 清除全部：提升对比度，从浅灰不可见改为可辨识的次级操作 */
#view-brand .btn-clear {
  border-color: color-mix(in srgb, var(--fg-muted) 50%, transparent);
  color: var(--fg);
}
#view-brand .btn-clear:hover { border-color: var(--accent); color: var(--accent); }

/* Shared print navigation and public control roles. */
:root { --maxw: var(--editorial-width); --gutter: var(--editorial-gutter); }
.app-header, .tabbar { background: var(--color-surface); }
.app-header .brand-mark { --accent: var(--color-ink); }
.app-header .brand-mark svg > rect:last-child { fill: var(--color-accent); }
#tabbar .tab { position: relative; color: var(--color-muted); }
#tabbar .tab[aria-current="page"] { color: var(--color-ink); text-decoration: none; }
#tabbar .tab[aria-current="page"]::before {
  content: "";
  position: absolute;
  inset: auto 14% 0;
  height: 3px;
  background: var(--color-accent);
}
@media (max-width:820px) {
  #tabbar .tab[aria-current="page"]::before { inset: 0 15% auto; }
  #tabbar .tab[aria-current="page"] { background: var(--color-selected); }
}
#tabbar .tab:focus-visible { outline-color: var(--color-focus); }
:where(#main, .app-header, .tabbar, dialog) :focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}
#view-screenings :is(.btn-primary,.seg button[aria-pressed="true"]), #booking .reg-btn {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border-color: var(--color-ink);
}
#view-screenings :is(.date-rail button,.list-row) { border-color: var(--color-line); }
#view-screenings .date-rail button[aria-pressed="true"] {
  border-color: var(--color-line-strong);
  background: var(--color-selected);
}
#view-screenings .list-row { border-block-end: 1px solid var(--color-line); }
#view-screenings .lr-title { font-family: var(--font-display); font-weight: 600; line-height: 1.25; }
#view-screenings .lr-preview { aspect-ratio: 2/3; object-fit: contain; }
#view-screenings .cal-cell.has-events .daynum { position: relative; z-index: 1; background: var(--color-surface); color: var(--color-ink); }
#view-screenings .cal-cell.today .daynum { background: var(--color-accent); color: var(--color-ink); }

/* Blue Hour: images and data share the cover folio and rail. */
#view-screenings .r4-cover .hero-poster { justify-self: end; }
#view-screenings .r4-cover .hero-admission { border-block-start: 1px solid var(--color-dark-line); padding-block-start: 12px; }
#view-screenings .r4-cover .hero-ctas .btn-ghost { text-align: start; align-self: flex-start; }
#view-screenings .r4-cover .hero-status:not(.pill-live) { color: var(--color-dark-muted); }
#view-screenings .hero + .section { padding-block-start: 24px; }
#view-screenings #prog-title { scroll-margin-block-start: calc(var(--header-h) + 16px); }
@media (max-width:720px) {
  #view-screenings .r4-cover .hero-admission { padding-block-start: 8px; }
  #view-screenings .r4-cover .hero-ctas .btn-ghost { align-self: flex-start; }
  #view-screenings .r4-cover .hero-ctas .btn-primary .f24-icon { display: inline-block; }
}

/* Brand archives use a photograph as the lead and a restrained index below. */
#view-brand #about {
  display: grid;
  gap: 16px 32px;
  border-block-end: 1px solid var(--color-line-strong);
}
#view-brand #about-h { font: 600 clamp(2rem,4.6vw,4rem)/1.12 var(--editorial-display); margin: 0; }
#view-brand #about .about-grid { display: block; color: var(--color-ink); }
#view-brand #about .about-grid .t-body { max-width: 30em; }
#view-brand #about .brand-photo img { aspect-ratio: 5/3; object-fit: cover; object-position: 50% 45%; }
#view-brand #about .brand-photo figcaption {
  margin: 0; padding: 8px 12px;
  background: var(--color-dark-surface); color: var(--color-dark-muted);
}
#view-brand .about-stats { margin-top: 20px; padding-top: 12px; border-block-start: 1px solid var(--color-line-strong); }
#view-brand .about-stats .stat .k { color: var(--color-ink); }
#view-brand .reading-notes { border-top: 0; }
#view-brand .reading-notes .reading-note { gap: 16px; }
#view-brand .reading-note h3 { font-family: var(--editorial-display); }
#view-brand .reading-note a { text-underline-offset: 4px; }
#view-brand .filterbar { background: var(--color-surface); padding: 12px; }
#view-brand .fchip[aria-pressed="true"] {
  background: var(--color-accent); color: var(--color-ink); border-color: var(--color-ink);
}
#view-brand .fchip[aria-pressed="true"] .cnt { color: var(--color-ink); }
#view-brand .article-row {
  grid-template-columns: clamp(48px, 6vw, 80px) minmax(0,1fr);
  gap: 16px; align-items: start;
}
#view-brand .archive-thumb {
  position: relative; display: grid; place-items: center;
  width: 100%; aspect-ratio: 4/3; overflow: hidden;
  color: var(--color-dark-muted); background: var(--color-dark-surface);
  border-radius: var(--editorial-radius);
}
#view-brand .archive-thumb .f24-icon { width: 20px; height: 20px; }
#view-brand .archive-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#view-brand .archive-byline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
#view-brand .article-row .a-title { font-family: var(--editorial-display); font-size: clamp(1rem,1.4vw,1.35rem); text-wrap: pretty; }
#view-brand .article-row .a-title:hover { text-decoration: underline; }
#view-brand .article-row .tag { padding: 0; border: none; color: var(--color-muted); font-size: .75rem; }
@media (min-width:821px) {
  #view-brand #about { grid-template-columns: repeat(12,minmax(0,1fr)); gap: 16px; }
  #view-brand #about-h { grid-column: 1/6; grid-row: 1; align-self: end; }
  #view-brand #about .brand-photo { grid-column: 6/-1; grid-row: 1/span 2; align-self: center; }
  #view-brand #about .about-grid { grid-column: 1/6; grid-row: 2; align-self: start; }
}

/* Collection entries use a perforated ticket edge and an explicit use label. */
#view-profile > .section:first-child { border-block-end: 1px solid var(--color-line-strong); }
#view-profile #h-profile, #view-settings #h-settings { font-size: clamp(2rem, 5vw, 4rem); }
#view-profile .profile-wallet .list { display: grid; gap: 12px; border: none; }
#view-profile .profile-wallet .list li { border: 0; }
#view-profile .profile-wallet .row-btn {
  margin: 0; min-height: 92px; padding: 16px;
  background: var(--color-surface); border: 1px solid var(--color-line-strong); box-shadow: none;
  grid-template-columns: 24px minmax(0,1fr) auto; gap: 12px;
}
#view-profile .profile-wallet .row-btn:hover { border-color: var(--color-ink); background: var(--color-selected); }
#view-profile .profile-wallet .row-btn::before {
  right: 104px; background: none; mask: none;
  border-color: var(--color-line-strong);
}
#view-profile .profile-wallet .row-btn::after {
  right: 98px; top: -6px; border-color: var(--color-line-strong); box-shadow: none;
}
#view-profile .profile-wallet .play-profile-link {
  display: flex; align-items: center;
  background: var(--color-dark-surface); border-color: var(--color-dark-line); color: var(--color-dark-text);
}
#view-profile .profile-wallet .play-profile-link:hover { color: var(--color-dark-text); background: var(--color-ink); }
#view-profile .profile-wallet .play-profile-link::before {
  content: ""; display: block; position: static; border: 0; flex: 0 0 22px;
  width: 22px; height: 14px; background: var(--color-accent);
  mask: radial-gradient(circle at left,transparent 2px,#000 2.5px),
        radial-gradient(circle at right,transparent 2px,#000 2.5px);
  mask-composite: intersect;
}
#view-profile .profile-wallet .play-profile-link::after { display: none; }
#view-profile .profile-wallet .play-profile-link:focus-visible { outline-color: var(--color-focus); }
#view-profile .profile-wallet .row-btn > .f24-icon { width: 22px; height: 22px; color: var(--color-ink); }
#view-profile .profile-wallet .play-profile-link > .f24-icon { color: var(--color-accent); }
#view-profile .profile-wallet .row-btn small { display: block; margin-top: 4px; color: var(--color-muted); font: .75rem/1.4 var(--editorial-body); }
#view-profile .profile-wallet .row-btn .val { font-size: .75rem; padding-inline-start: 4px; }
#view-profile .wallet-note { margin: 8px 0 0; color: var(--color-muted); font-size: .875rem; }
#view-collection .stub { background: var(--color-surface); border-radius: var(--editorial-radius); }
#view-collection .stub .seal.unlocked { background: var(--color-accent); color: var(--color-ink); box-shadow: none; }
#view-settings .seg button { border: 1px solid var(--color-line-strong); }
#view-settings .seg button[aria-pressed="true"] { background: var(--color-accent); color: var(--color-ink); }
@media (min-width:821px) {
  #view-profile .profile-wallet .list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:390px) {
  #view-profile .profile-wallet .row-btn::before { right: 92px; }
  #view-profile .profile-wallet .row-btn::after { right: 86px; }
}

/* PLAY uses a single editorial spread and a separate index for the daily actions. */
#view-community .play-shell h1 { font-size: clamp(2rem,5vw,4rem); }
#view-community .play-shell .play-feature {
  border: 1px solid var(--color-dark-line);
  background: var(--color-dark-surface); color: var(--color-dark-text);
  border-radius: var(--editorial-radius); padding: clamp(16px,3vw,40px);
}
#view-community .play-shell .play-feature h3 { color: var(--color-accent); font: 600 clamp(1.5rem,3.5vw,2.75rem)/1.13 var(--editorial-display); }
#view-community .play-shell .play-feature p {
  font: 500 clamp(1rem,1.7vw,1.25rem)/1.5 var(--editorial-body);
  max-width: 34rem;
}
#view-community .play-shell .play-feature .play-empty-note {
  color: var(--color-dark-muted); font-size: .9375rem;
}
#view-settings .subview-back .icon-btn { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
#view-community .play-feature-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
#view-community .play-feature-actions a { color: var(--color-dark-text); padding-block: 10px; min-height: 44px; }
#view-community .play-shell .play-feature button:not(.play-primary) {
  border: 1px solid var(--color-dark-muted);
  background: transparent;
  color: var(--color-dark-text);
  border-radius: var(--editorial-radius);
}
#view-community .play-shell .play-primary {
  background: var(--color-accent) !important;
  border-color: var(--color-ink) !important;
  color: var(--color-ink) !important;
  border-radius: var(--editorial-radius);
}
#view-community .play-feature-actions :focus-visible,
#view-community .play-feature :focus-visible { outline-color: var(--color-focus-inverse); }
#view-community .play-shell .play-nav button[aria-pressed="true"] {
  background: var(--color-selected); color: var(--color-ink);
  outline: 1px solid var(--color-ink);
}
#view-community .play-list { scroll-margin-top: calc(var(--header-h) + 8px); }
#view-community .play-list .community-lists a[aria-current="page"] { border-color: var(--color-ink); background: var(--color-selected); color: var(--color-ink); }
#view-community .play-list .community-page { padding-inline: 0; }
#view-community .play-date input { border-color: var(--color-line-strong); }
#view-community .play-game-card, #view-community .play-ticket { border-radius: var(--editorial-radius); }
