:root {
  --paper: #f7f4eb;
  --ink: #314d43;
  --muted: #657469;
  --line: #d5d8ca;
  --cinnabar: #9c4e3e;
  --font-zh: "KaiTi-CJK", "LXGW WenKai Lite", serif;
  --font-en: var(--site-font);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--site-font); }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, video:focus-visible, iframe:focus-visible { outline: 2px solid var(--cinnabar); outline-offset: 5px; }

/* Keep the shared navigation behavior; this page uses a flat paper header. */
.mecc-global-nav {
  position: relative;
  height: 56px;
  width: calc(100% - 80px);
  max-width: 1120px;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
.mecc-nav-back, .mecc-nav-back:hover, .mecc-nav-back:active {
  position: static;
  max-width: none;
  padding: 9px 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  transform: none;
}
.mecc-nav-back:hover { color: var(--cinnabar); }
.mecc-nav-back svg { background: transparent; color: inherit; padding: 0; width: 20px; height: 20px; }
.mecc-nav-title {
  position: static;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: none;
  color: var(--ink);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: .04em;
  text-shadow: none;
  line-height: 1.3;
}
.mecc-nav-title small { font-size: 14px; color: var(--muted); letter-spacing: 0; }

main { max-width: 1200px; padding: 0 40px; margin: 0 auto; }
.intro { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.seal {
  flex: 0 0 40px;
  width: 40px;
  height: 48px;
  display: grid;
  grid-template-rows: repeat(2, 18px);
  place-content: center;
  justify-items: center;
  padding: 5px;
  border: 1px solid var(--cinnabar);
  color: var(--cinnabar);
  font-size: 16px;
  line-height: 18px;
  writing-mode: horizontal-tb;
}
.seal > span { display: block; white-space: nowrap; }
.intro-copy { min-width: 0; max-width: 900px; }
.eyebrow { margin: 0 0 6px; color: var(--cinnabar); font-size: 10px; letter-spacing: .12em; line-height: 1.5; }
.intro-note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.collection { padding-top: 20px; min-height: 280px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.filter-btn { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 3px; padding: 10px 16px; min-height: 44px; font: inherit; font-size: 14px; cursor: pointer; }
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.video-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 3px; background: #fcfaf4; overflow: hidden; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #20372f; }
.video-frame video, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #20372f; }
.open-link { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; text-underline-offset: 6px; }
.open-link:hover { background: #314d43; }
.video-meta { padding: 22px 24px 24px; border-top: 3px solid #aebfaf; }
.video-title { margin: 0 0 16px; color: var(--ink); font-size: 21px; line-height: 1.5; font-weight: 400; overflow-wrap: anywhere; }
.video-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { border-radius: 2px; background: #e9eee4; color: #48604f; padding: 5px 9px; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.tag.student { background: #f2e4da; color: #8f4739; }
.tag.date { background: #eee8d8; color: #78613b; }
.video-note { border-top: 1px solid var(--line); padding-top: 16px; margin: 18px 0 0; font-size: 14px; line-height: 1.8; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.state { padding: 54px 20px; text-align: center; color: var(--muted); line-height: 1.9; }
[hidden] { display: none !important; }
.page-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; letter-spacing: .04em; }

@media (min-width: 1600px) {
  main { max-width: 1400px; }
  .mecc-global-nav { max-width: 1320px; }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .mecc-nav-back span { display: none; }
}
@media (max-width: 700px) {
  main { padding: 0 22px; }
  .mecc-global-nav { height: 56px; width: calc(100% - 44px); }
  .mecc-nav-back { padding: 10px; margin-left: -10px; }
  .mecc-nav-title { flex-direction: column; align-items: flex-end; gap: 2px; font-size: 17px; }
  .mecc-nav-title small { font-size: 12px; }
  .intro { gap: 12px; padding: 16px 0; }
  .eyebrow { letter-spacing: .06em; }
  .intro-note { font-size: 13px; }
  .collection { padding-top: 16px; }
  .video-grid { grid-template-columns: 1fr; gap: 22px; }
  .video-meta { padding: 18px; }
  .video-title { font-size: 20px; }
  .page-footer { margin-top: 32px; font-size: 11px; flex-wrap: wrap; }
}
