/* Canonical public foundation. Page styles own layout; no legacy theme layers. */
:root {
  color-scheme: dark;
  --bg: #080b16; --bg2: #121725; --bg3: #182139; --card: #121725;
  --page-max: 1440px; --page-inset: 40px;
  --text: #f5f6fa; --text2: #c1c8d8; --text3: #97a4ba; --border: #2c3549;
  --gold: #cafe61; --gold-light: #ddff9b;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --display: var(--font); --radius: 4px; --radius-lg: 8px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text); font: 15px/1.65 var(--font); display: flex; flex-direction: column; }
body > main { flex: 1; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.3; text-wrap: pretty; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
button, input, select, textarea { font: inherit; }
button, select, summary { cursor: pointer; }
button { padding: 0; border: 0; background: transparent; color: inherit; }
button:disabled { cursor: default; opacity: .45; }
button, input, select, textarea { border-radius: var(--radius); }
[hidden] { display: none !important; }
:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
::selection { color: var(--bg); background: var(--gold); }
.container { width: 100%; max-width: var(--page-max); padding-inline: var(--page-inset); margin-inline: auto; }
.display-title { font-family: var(--display); font-weight: 650; letter-spacing: -.025em; }
.review-date-note { display: inline-block; max-width: 100%; }
.navbar { position: relative; z-index: 30; height: 72px; flex-shrink: 0; background: var(--bg); border-bottom: 1px solid var(--border); }
.navbar > .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.navbar .logo img { height: 24px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { position: relative; display: flex; align-items: center; min-height: 72px; color: var(--text2); font-size: 14px; white-space: nowrap; }
.nav-links a:hover, .nav-links a.nav-active { color: var(--gold); }
.nav-links a.nav-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 14px; height: 2px; background: var(--gold); }
.nav-toggle { display: none; border: 1px solid var(--border); border-radius: 0; background: transparent; width: 44px; height: 44px; padding: 11px; }
.nav-toggle span { display: block; height: 1px; width: 20px; background: var(--text); margin-block: 5px; }
.page-header { padding: 30px 0 22px; }
.page-header h1 { font-size: clamp(34px, 4.3vw, 58px); font-weight: 700; line-height: 1.1; letter-spacing: -.042em; }
.page-header p { margin-top: 10px; max-width: 56em; font-size: 15px; color: var(--text2); }
.section { margin-bottom: 40px; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.section-header h2 { min-width: 0; font-size: clamp(25px, 2.9vw, 39px); font-weight: 690; line-height: 1.15; letter-spacing: -.035em; }
.more { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; font-size: 13px; color: var(--gold); }
.more:hover { text-decoration: underline; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; min-height: 44px; border: 1px solid transparent; border-radius: 0; font-size: 14px; font-weight: 600; line-height: 1.5; white-space: nowrap; cursor: pointer; transition: background-color .16s, color .16s, border-color .16s; }
.btn-primary, .btn-gold { background: var(--gold); color: var(--bg); }
.btn-primary:hover, .btn-gold:hover { background: var(--gold-light); }
.btn-secondary, .btn-gold-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover, .btn-gold-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding-inline: 14px; font-size: 13px; }
.btn-block { width: 100%; }
.filter-field { display: grid; gap: 7px; min-width: 0; font-size: 12px; color: var(--text3); }
.filter-field :is(input, select), .search-input { min-width: 0; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 0; color: var(--text); background: var(--bg2); }
input::placeholder, textarea::placeholder { color: var(--text3); opacity: 1; }
.video-grid, .works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.video-card { min-width: 0; }
.video-card .thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg2); border-radius: var(--radius); }
.work-image-link { display: block; width: 100%; height: 100%; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.video-card .body { padding-top: 12px; }
.work-edition { color: var(--text3); font-size: 11px; letter-spacing: .02em; }
.video-card h4 { margin: 4px 0 8px; font-size: 19px; line-height: 1.4; overflow-wrap: anywhere; }
.work-view:hover { color: var(--gold); }
.video-card .meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13px; color: var(--text2); }
.work-award { color: var(--gold); font-size: 12px; }
.work-card-footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-top: 7px; }
.work-track { font-size: 12px; color: var(--text3); }
.work-watch-link { display: inline-flex; align-items: center; min-height: 32px; font-size: 12px; white-space: nowrap; color: var(--text2); }
.work-watch-link:hover { color: var(--gold); text-decoration: underline; }
.gallery-empty, .catalogue-empty { grid-column: 1 / -1; padding: 40px 20px; color: var(--text2); text-align: center; background: var(--bg2); border-radius: var(--radius); }
.gallery-empty a { color: var(--gold); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.pagination button { min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); background: transparent; color: var(--text2); }
.pagination button:hover { border-color: var(--gold); color: var(--gold); }
.pagination button.active, .pagination button[aria-current="page"] { border-color: var(--gold); background: var(--gold); color: var(--bg); }
.avatar-fallback { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: var(--bg3); color: var(--text); font-size: 22px; font-weight: 700; border-radius: inherit; }
.video-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgb(5 7 14 / 95%); padding: 32px; }
.video-modal.open { display: flex; }
.modal-close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--bg2); font-size: 28px; cursor: pointer; }
.modal-content { width: 100%; max-width: 1000px; }
.embed-wrap { position: relative; aspect-ratio: 16/9; background: #000; }
.embed-wrap iframe { position: absolute; width: 100%; height: 100%; border: 0; }
.modal-info { padding-top: 16px; }
.modal-info h2 { font-size: 22px; }
.modal-info p { color: var(--text2); font-size: 14px; }
.footer { margin-top: auto; padding: 32px 0 22px; border-top: 1px solid var(--border); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.footer-brand img { height: 28px; width: auto; }
.footer-brand p { margin-top: 12px; color: var(--text3); font-size: 13px; }
.footer-col { padding-left: 18px; border-left: 1px solid var(--border); }
.footer-col h4 { margin-bottom: 5px; font-size: 14px; }
.footer-col a { display: flex; align-items: center; width: fit-content; min-height: 34px; font-size: 13px; color: var(--text2); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { padding-top: 16px; border-top: 1px solid var(--border); color: var(--text3); font-size: 12px; }
.static-auth-notice { width: 100%; padding: clamp(26px, 6vw, 76px) var(--page-inset); }
.static-auth-card { max-width: 600px; margin-inline: auto; padding: clamp(20px, 4vw, 40px); border: 1px solid var(--border); border-top: 3px solid var(--gold); background: var(--bg2); }
.static-auth-brand { display: block; width: 112px; margin-bottom: 20px; }
.static-auth-card h1 { margin-bottom: 12px; font-size: clamp(29px, 4vw, 42px); line-height: 1.15; letter-spacing: -.035em; }
.static-auth-card p { margin-bottom: 18px; color: var(--text2); text-wrap: pretty; }
.legacy-event-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.legacy-event-row > span:first-child { color: var(--gold); }
@media (max-width: 1024px) {
  :root { --page-inset: 24px; }
  .nav-links { gap: 22px; }
}
@media (max-width: 768px) {
  :root { --page-inset: 20px; }
  .review-date-note { display: block; }
  .navbar { height: 64px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; }
  .nav-links.mobile-open { position: absolute; top: 100%; left: 0; right: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; padding: 8px var(--page-inset) 16px; background: var(--bg2); border-bottom: 1px solid var(--border); }
  .nav-links a { min-height: 46px; }
  .nav-links a.nav-active::after { right: auto; bottom: 6px; width: 24px; }
  .page-header { padding: 22px 0 16px; }
  .page-header p { margin-top: 8px; font-size: 14px; }
  .section { margin-bottom: 32px; }
  .section-header { margin-bottom: 12px; }
  .video-grid, .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .video-card h4 { font-size: 17px; }
  .footer { padding-top: 28px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col { padding: 9px 0 0; border-left: 0; border-top: 1px solid var(--border); }
  .footer-col a { min-height: 40px; }
}
@media (max-width: 480px) {
  .video-grid, .works-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
