    :root {
      --ink: #172033;
      --muted: #667085;
      --line: #e7ebf0;
      --soft: #f7f8fb;
      --brand: #ff6b35;
      --brand-dark: #e85a25;
      --green: #0f9f77;
      --blue: #2764d8;
      --panel: #ffffff;
      --shadow: 0 14px 40px rgba(23, 32, 51, 0.08);
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
      color: var(--ink);
      background: #f4f6f9;
    }
    a { color: inherit; }
    .page-head {
      max-width: 1200px;
      margin: 0 auto;
      padding: 54px 24px 30px;
    }
    .eyebrow {
      color: var(--brand);
      font-weight: 800;
      font-size: 13px;
      margin-bottom: 12px;
    }
    h1 {
      margin: 0;
      font-size: clamp(32px, 5vw, 58px);
      line-height: 1.08;
      letter-spacing: 0;
    }
    .lead {
      margin: 18px 0 0;
      max-width: 760px;
      color: var(--muted);
      font-size: 17px;
      line-height: 1.85;
    }
    .stats {
      margin-top: 24px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }
    .stat-pill {
      border: 1px solid var(--line);
      background: #fff;
      border-radius: 999px;
      padding: 8px 13px;
      color: var(--muted);
      font-size: 13px;
    }
    .filters-wrap {
      background: #fff;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }
    .filters {
      max-width: 1200px;
      margin: 0 auto;
      padding: 16px 24px;
      display: flex;
      gap: 10px;
      overflow-x: auto;
    }
    .filter-chip {
      border: 1px solid var(--line);
      background: #fff;
      color: var(--muted);
      border-radius: 999px;
      padding: 9px 16px;
      font-size: 14px;
      cursor: pointer;
      white-space: nowrap;
    }
    .filter-chip.active {
      color: #fff;
      background: var(--ink);
      border-color: var(--ink);
    }
    .content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 30px 24px 64px;
    }
    .grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 16px;
      align-items: start;
    }
    .sample-card {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      align-self: start;
      min-width: 0;
    }
    .sample-media {
      position: relative;
      display: block;
      width: 100%;
      padding: 0;
      border: 0;
      background: #101722;
      aspect-ratio: 16 / 9;
      cursor: pointer;
      overflow: hidden;
    }
    .sample-card.is-portrait .sample-media {
      aspect-ratio: 9 / 16;
      max-height: 540px;
    }
    .sample-media img, .sample-media .blank-cover {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }
    .blank-cover {
      background:
        linear-gradient(135deg, rgba(255,107,53,0.2), transparent 42%),
        linear-gradient(315deg, rgba(15,159,119,0.22), transparent 44%),
        #101722;
    }
    .play {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      color: #fff;
      pointer-events: none;
    }
    .play::before {
      content: '▶';
      display: grid;
      place-items: center;
      width: 56px;
      height: 56px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,0.8);
      background: rgba(0,0,0,0.55);
      font-size: 24px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    }
    .sample-media:focus-visible { outline: 3px solid #ff6b35; outline-offset: 2px; }
    .badge-row {
      position: absolute;
      left: 10px;
      right: 10px;
      bottom: 10px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
    }
    .badge, .aspect {
      background: rgba(12,18,30,0.76);
      color: #fff;
      border: 1px solid rgba(255,255,255,0.18);
      border-radius: 999px;
      padding: 5px 9px;
      font-size: 12px;
      max-width: 70%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .aspect { color: #d8f7ec; }
    .sample-info {
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      flex: 1;
      min-width: 0;
    }
    .sample-title {
      margin: 0;
      font-size: 18px;
      line-height: 1.35;
      letter-spacing: 0;
    }
    .sample-subtitle {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.65;
      min-height: 46px;
    }
    .tag-row {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: auto;
    }
    .tag {
      font-size: 12px;
      color: var(--muted);
      background: var(--soft);
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 4px 8px;
    }
    .card-actions {
      display: flex;
      gap: 10px;
      padding-top: 2px;
    }
    .card-btn {
      flex: 1;
      min-height: 38px;
      border-radius: 7px;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--ink);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
    }
    .card-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
    .card-btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
    .card-btn:hover { background: var(--soft); }
    .empty-state {
      background: #fff;
      border: 1px dashed #cbd5e1;
      border-radius: 8px;
      padding: 34px;
      color: var(--muted);
      line-height: 1.8;
    }
    .empty-state strong { color: var(--ink); }
    .modal {
      position: fixed;
      inset: 0;
      z-index: 50;
      display: none;
      align-items: center;
      justify-content: center;
      background: rgba(12,18,30,0.76);
      padding: 24px;
    }
    .modal.active { display: flex; }
    .modal-inner {
      width: min(1080px, 96vw);
      background: #0c121e;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 24px 70px rgba(0,0,0,0.45);
    }
    .modal-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      padding: 14px 16px;
      color: #fff;
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .modal-title {
      font-weight: 800;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .modal-close {
      border: 1px solid rgba(255,255,255,0.22);
      background: rgba(255,255,255,0.08);
      color: #fff;
      border-radius: 7px;
      min-width: 38px;
      height: 34px;
      cursor: pointer;
    }
    .modal video {
      width: 100%;
      max-height: 78vh;
      background: #000;
      display: block;
    }
    .loading {
      color: var(--muted);
      padding: 30px 0;
    }
    @media (min-width: 1400px) {
      .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    }
    @media (max-width: 1100px) {
      .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    }
    @media (max-width: 960px) {
      .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 640px) {
      .page-head { padding: 38px 16px 22px; }
      .filters { padding: 14px 16px; }
      .content { padding: 22px 16px 46px; }
      .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
      .lead { font-size: 15px; }
      .sample-card .sample-media,
      .sample-card.is-portrait .sample-media {
        aspect-ratio: auto;
        height: clamp(140px, 45vw, 200px);
        max-height: 200px;
      }
      .sample-media img { object-fit: contain; }
      .play::before { width: 44px; height: 44px; font-size: 20px; }
      .badge-row { left: 6px; right: 6px; bottom: 6px; gap: 4px; }
      .badge, .aspect { padding: 3px 5px; }
      .sample-info { padding: 10px; gap: 8px; }
      .sample-title { font-size: 15px; }
      .sample-subtitle { font-size: 13px; line-height: 1.5; min-height: 0; }
      .tag-row { gap: 4px; }
      .tag { padding: 3px 5px; }
      .card-actions { gap: 6px; }
      .card-btn { min-width: 0; min-height: 44px; font-size: 12px; }
      html[lang="en"] .card-actions { flex-direction: column; }
    }
    .sample-site-header, .sample-site-footer { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; padding:20px max(16px, calc((100% - 1200px) / 2)); background:#fff; border-bottom:1px solid #e5e7eb; }
    .sample-site-header a, .sample-site-footer a { color:var(--ink); text-decoration:none; display:inline-flex; align-items:center; min-height:44px; }
    .sample-site-header nav, .sample-site-footer nav { display:flex; gap:20px; flex-wrap:wrap; }
    .sample-site-header .brand { font-size:22px; font-weight:800; }
    html[lang="en"] {
      --ink:#1b2a4e;
      --line:#e1e7f0;
      --soft:#f6f8fc;
      --brand:#bd2937;
      --brand-dark:#a3222f;
    }
    html[lang="en"] body { background:#edf2f8; }
    .sample-site-header .brand { gap:8px; }
    .sample-site-header .brand span { display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--brand);color:#fff;font-size:11px; }
    .sample-site-header a[href="/login"] { min-height:36px;padding:7px 13px;border-radius:8px;background:var(--brand);color:#fff;font-weight:650; }
    .sample-site-footer { background:#0f172a;color:#cbd5e1; }
    .sample-site-footer a { color:inherit; }
    @media (max-width:650px) {
      html[lang="en"] .sample-site-header { gap:4px; padding:12px 16px; }
      html[lang="en"] .sample-site-header nav { gap:0 12px; font-size:13px; }
      html[lang="en"] .page-head { padding:20px 16px 12px; }
    }
    .sample-site-footer { margin-top:32px; border-top:1px solid #e5e7eb; }

#empty-state { display: none; }

.sample-site-header .brand .brand-mark{display:block;width:34px;height:34px;flex:none;overflow:hidden;border-radius:8px;background:transparent}
.sample-site-header .brand .brand-mark img{display:block;transform:scale(1.36)}

/* Match the overseas desktop navigation and bring the gallery into view earlier. */
@media (min-width: 901px) {
  html[lang="en"] .sample-site-header { padding-block: 8px; gap: 12px; }
  html[lang="en"] .sample-site-header a { min-height: 40px; }
  html[lang="en"] .sample-site-header nav { gap: 21px; font-size: 14px; }
  html[lang="en"] .page-head { padding-block: 26px 18px; }
  html[lang="en"] h1 { font-size: clamp(34px, 4vw, 46px); }
  html[lang="en"] .lead { margin-top: 10px; font-size: 16px; line-height: 1.55; }
  html[lang="en"] .stats { margin-top: 14px; gap: 8px; }
  html[lang="en"] .filters { padding-block: 10px; }
  html[lang="en"] .filter-chip { min-height: 40px; padding-block: 6px; }
  html[lang="en"] .content { padding-block: 18px 44px; }
  html[lang="en"] .grid { gap: 12px; }
  html[lang="en"] .sample-card.is-portrait .sample-media { max-height: clamp(230px, 42vh, 350px); }
  html[lang="en"] .sample-card.is-portrait .sample-media img { object-fit: contain; }
  html[lang="en"] .sample-info { padding: 12px; }
  html[lang="en"] .sample-site-footer { margin-top: 20px; padding-block: 12px; }
}
