.compact-video { display: none; }
@media (max-width: 700px) {
  #watch .video-copy, #watch:not(.expanded) .video-stage { display: none; }
  #watch { display: grid; grid-template-columns: 1fr; gap: 0; padding: 14px 16px 0; }
  .compact-video { display: block; min-width: 0; }
  .compact-trigger {
    display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px;
    align-items: center; width: 100%; padding: 0; text-align: start;
    font: inherit; color: var(--ink); border: 0; background: transparent; cursor: pointer;
  }
  .compact-poster { width: 76px; height: 118px; object-fit: cover; object-position: center; }
  .compact-copy { display: grid; gap: 7px; }
  .compact-copy strong { font-size: clamp(17px,4.65vw,21px); line-height: 1.23; letter-spacing: -.025em; }
  .compact-copy .video-badge { margin: 0; color: var(--muted); }
  .compact-action { display: flex; flex-wrap: wrap; align-items: center; column-gap: 7px; font-size: 12px; font-weight: 700; }
  .compact-disc { display: inline-grid; place-items: center; background: var(--red); color: white; width: 23px; height: 23px; border-radius: 50%; font-size: 10px; }
  .compact-duration { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
  .compact-footer { display: flex; align-items: center; justify-content: flex-end; border-top: 1px solid var(--line); margin-top: 10px; }
  #watch .compact-footer .focus-read, .compact-close { display: inline-flex; align-items: center; font: inherit; font-size: 12px; font-weight: 650; min-height: 44px; padding: 0; margin: 0; }
  .compact-close { color: var(--ink); border: 0; background: none; cursor: pointer; }
  #watch:not(.expanded) .compact-close { display: none; }
  #watch.expanded .compact-footer { justify-content: space-between; }
  #watch.expanded .compact-action { visibility: hidden; }
  #watch.expanded .video-stage { margin: 4px auto 16px; width: min(100%, 270px); }
  #watch .video-status:not([hidden]) { margin: 0 0 12px; }
}
.sections-toggle, .nav .section-options { display: none; }

@media (max-width: 850px) {
  .nav {
    display: grid;
    grid-template-columns: minmax(0,1fr) max-content 44px;
    gap: 0 8px;
    align-items: center;
  }
  .nav .nav-scroll { grid-area: 1 / 1; overflow: visible; gap: clamp(10px,3.8vw,24px); }
  .nav-scroll > a:nth-child(n+3) { display: none; }
  .nav .nav-search { grid-area: 1 / 3; width: 44px; justify-content: center; padding: 0; }
  .nav .nav-search span { display: none; }
  .sections-toggle {
    grid-area: 1 / 2; min-height: 46px; display: inline-flex; align-items: center; gap: 6px;
    padding: 0 8px; background: transparent; color: var(--ink); border: 0;
    font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer;
  }
  .sections-toggle svg {
    width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
  }
  .sections-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .sections-toggle[aria-expanded="true"], .nav:has(.section-options [aria-current]) .sections-toggle { color: var(--red); }
  .nav .section-options:not([hidden]) {
    grid-area: 2 / 1 / 3 / -1; display: grid; list-style: none; margin: 0; padding: 0 14px;
    background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--red);
  }
  .section-options li + li { border-top: 1px solid var(--line); }
  .nav .section-options a {
    display: flex; justify-content: space-between; gap: 12px; align-items: center;
    min-height: 46px; white-space: normal; color: var(--ink); font-size: 14px; font-weight: 600;
  }
  .section-options a svg { width: 16px; height: 16px; color: var(--muted); }
  .nav .section-options a[aria-current] { color: var(--red); }
  .sections-toggle:focus-visible, .section-options a:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
}
@media (min-width:450px) and (max-width:850px) {
  .nav-scroll > a:nth-child(3) { display: flex; }
}
.desktop-label, .desktop-play { display: none; }

@media (min-width:851px) {
  .original-label, .focus-heading > a { display: none; }
  .desktop-label { display: inline; }
  .focus-grid { grid-template-columns: 1fr 1fr; align-items: stretch; gap: clamp(16px,2vw,32px); }
  .focus-story { display: flex; flex-direction: column; justify-content: center; padding: 20px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
  .focus-story-link { display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.1fr); gap: clamp(16px,1.7vw,28px); align-items: center; }
  .focus-cover { height: auto; aspect-ratio: 1185/1327; border: 0; background: transparent; }
  .focus-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
  .focus-copy { padding: 0; }
  .focus-copy .tag, .video-copy .video-badge { text-transform: uppercase; font: 750 12px/1.4 system-ui,sans-serif; letter-spacing: .075em; }
  .focus-copy h1 { font-size: clamp(26px,2.4vw,44px); line-height: 1.22; margin: 12px 0; }
  .focus-copy .excerpt { font-size: 14px; -webkit-line-clamp: 3; }
  .focus-copy .focus-read { background: var(--ink); color: var(--bg); border-radius: 3px; padding: 0 15px; min-height: 44px; margin-top: 18px; font-size: 14px; }
  .focus-story > .card-actions { margin: 12px 0 0 calc((100% - clamp(16px,1.7vw,28px)) * .78 / 1.88 + clamp(16px,1.7vw,28px)); }
  .focus-video { grid-template-columns: minmax(0,1fr) minmax(132px,35%); align-content: center; align-items: center; gap: clamp(12px,1.5vw,24px); padding: clamp(16px,2vw,34px); }
  .video-stage { justify-self: end; width: 100%; }
  .video-copy { display: flex; padding: 0; }
  .video-copy h2 { font-size: clamp(23px,2vw,36px); line-height: 1.24; margin: 12px 0 20px; }
  .desktop-play { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 14px; border: 0; border-radius: 3px; background: #c7362c; color: white; line-height: 1.35; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
  .desktop-play:hover { background: #b62e24; }
  .desktop-play:focus-visible, .focus-story-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
  .desktop-play-icon { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 9px solid currentColor; }
  .desktop-play.is-playing .desktop-play-icon { width: 9px; height: 11px; border: 0; border-inline: 3px solid currentColor; }
  .run-time { padding-left: 9px; border-left: 1px solid #ffffff73; font-variant-numeric: tabular-nums; font-size: 12px; }
  .video-copy > .focus-read { color: var(--muted); font-weight: 500; min-height: 44px; margin-top: 0; gap: 6px; }
  .video-copy > .focus-read:hover { color: var(--ink); }
  .video-copy > .card-actions { display: flex; margin: 10px 0 0; padding: 0; }
  .focus-grid .share-trigger { background: transparent; border-color: transparent; padding: 0; color: var(--muted); font-size: 11px; }
  .focus-grid .share-trigger:hover { color: var(--ink); }
  .video-play .play-disc { width: 42px; height: 42px; font-size: 15px; background: #171513c7; box-shadow: 0 0 0 1px #ffffffab; }
  .video-play > span:nth-child(2) { display: none; }
}

.utility .banner-contact { margin: 0; min-height: 40px; border: 0; padding: 0; }
.inline-rank, .featured-time { display: none; }

@media (max-width: 700px) {
  .home-featured .featured-grid { gap: 0; }
  .featured-item { --thumb: clamp(74px,21vw,94px); --gutter: 14px; border-top: 1px solid var(--line); padding: 12px 0; }
  .featured-item .featured-rank, .featured-item .side-meta { display: none; }
  .featured-item .share-unit {
    position: relative; padding-left: calc(var(--thumb) + var(--gutter));
    min-height: calc(var(--thumb) * 1.25); display: flex; flex-direction: column; justify-content: center;
  }
  .featured-item .article-card { display: block; border: 0; padding: 0; }
  .featured-item .article-card .cover-wrap {
    position: absolute; left: 0; top: 0; width: var(--thumb); height: auto;
    aspect-ratio: 4/5; padding: 0;
  }
  .featured-item .article-card .tag { display: flex; align-items: baseline; gap: 8px; border: 0; padding: 0; color: var(--muted); }
  .featured-item .inline-rank { display: inline; color: var(--red); font-variant-numeric: tabular-nums; }
  .featured-item .article-card h3 { font-size: 17px; line-height: 1.35; margin: 5px 0 0; text-wrap: pretty; }
  .featured-item .card-actions { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin: 0; }
  .featured-item .featured-time { display: inline; color: var(--muted); font-size: 11px; line-height: 1.4; }
  .featured-item .share-trigger { border: 0; background: transparent; color: var(--muted); min-width: 44px; min-height: 44px; padding: 0; }
  .featured-item .share-trigger span { display: none; }
  .featured-item .share-trigger:hover, .featured-item .share-trigger:focus-visible { color: var(--ink); }
}
/* ===== 2026-11-23 redesign (mobile first). Loaded after the base stylesheet and the homepage layer. ===== */

/* ---------- Home: lead story ---------- */
.focus-heading > a { display: none; }               /* the video card sits right below; no duplicate jump link */

@media (max-width: 700px) {
  .home-focus { padding-top: 18px; }
  .focus-story-link { display: block; }
  .focus-cover {
    height: auto; width: 100%; aspect-ratio: 1185 / 1327;
    border: 0; background: var(--surface); overflow: hidden;
  }
  .focus-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .focus-copy { padding: 16px 0 0; }
  .focus-copy .tag { font-size: 11px; }
  .focus-copy h1 {
    font-size: clamp(25px, 7.2vw, 31px); line-height: 1.16; letter-spacing: -.02em;
    margin: 9px 0 10px; text-wrap: balance;
  }
  .focus-copy .excerpt {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    font-size: 14px; line-height: 1.6; color: var(--muted);
  }
  .focus-read { font-size: 13px; margin-top: 4px; }
  .focus-grid { gap: 26px; }
}

/* ---------- Article lists: one compact row style everywhere on phones ---------- */
@media (max-width: 700px) {
  .article-grid { gap: 0; }
  .article-grid > .featured-item:first-child { border-top: 1px solid var(--line); }
  .latest .filters {
    display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px;
    margin: 0 -18px 18px; padding: 0 18px 4px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
            mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .latest .filters::-webkit-scrollbar { display: none; }
  .latest .filter { flex: 0 0 auto; white-space: nowrap; min-height: 38px; padding: 0 14px; }
  .featured-item .article-card .cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
  .featured-item .article-card .cover-wrap { border: 0; background: var(--surface); }
}

/* ---------- Article lists on wider screens: no letterboxed posters ---------- */
@media (min-width: 701px) {
  .article-grid .article-card, .featured-grid .article-card {
    display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 18px;
    flex-direction: row; border-top: 1px solid var(--line); padding-top: 18px; align-items: start;
  }
  .article-grid .article-card .cover-wrap, .featured-grid .article-card .cover-wrap,
  .featured-item .article-card .cover-wrap {
    width: 128px; height: auto; aspect-ratio: 4 / 5; padding: 0; border: 0; background: var(--surface);
  }
  .article-grid .article-card .cover-wrap img, .featured-grid .article-card .cover-wrap img {
    width: 100%; height: 100%; object-fit: cover;
  }
  .article-grid .article-card h3, .featured-grid .article-card h3,
  .featured-item .article-card h3 { font-size: 18px; line-height: 1.4; margin: 6px 0 8px; }
  .article-grid .article-card .side-meta { border: 0; padding: 0; justify-content: flex-start; }
  .featured-item .card-actions { margin-left: 146px; }
  .featured-rank { display: none; }
}

/* ---------- Article page ---------- */
.reading-body { line-height: 1.8; }
.reading-body p { margin-bottom: 1.25em; }
html[lang="zh-Hans"] .reading-body { line-height: 1.9; }
html[lang="zh-Hans"] :is(h1, h2, h3) { word-break: keep-all; overflow-wrap: anywhere; }
.reading-header h1 { text-wrap: balance; }

@media (max-width: 600px) {
  .reading-top { padding: 16px 0 18px; }
  .reading-layout { gap: 20px; }
  .reading-aside { width: 100%; align-self: stretch; }
  .reading-aside .cover-wrap {
    width: 100%; aspect-ratio: 1185 / 1327; padding: 0; border: 0; background: var(--surface);
  }
  .reading-aside .cover-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .reading-header h1 { font-size: clamp(26px, 7.4vw, 31px); line-height: 1.22; letter-spacing: -.02em; margin: 12px 0 16px; }
  .reading-body { font-size: 17px; line-height: 1.75; }
  html[lang="zh-Hans"] .reading-body { line-height: 1.85; }
  .reading-body h2 { margin-top: 1.6em; margin-bottom: .7em; }
}

/* floating reading bar: tucks away while reading down, returns on scroll up / near the end */
.reading-float { transition: transform .22s ease, opacity .22s ease; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.reading-float.is-tucked { transform: translate(-50%, 160%); opacity: 0; pointer-events: none; }
@media (max-width: 600px) { .reading-float { padding: 8px 14px; font-size: 12px; gap: 14px; } }

/* related stories at the end of an article */
.reading-next { margin-top: 36px; padding-bottom: 32px; }
.reading-next .section-head { margin: 0 0 6px; align-items: center; }
.reading-next .section-head h2 { font-size: 21px; }
.next-section { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); min-height: 44px; }
.next-section svg { width: 15px; height: 15px; }
.next-section:hover { color: var(--red); }
@media (min-width: 701px) { .next-grid { grid-template-columns: 1fr; gap: 0; } .next-grid .featured-item { padding: 0 0 18px; } }

/* ---------- Footer ---------- */
.site-footer { display: grid; grid-template-columns: 1fr; gap: 24px; padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
.footer-head { display: grid; gap: 6px; }
.footer-brand { font-family: Arial, "PingFang SC", sans-serif; font-weight: 900; letter-spacing: -.03em; font-size: 26px; }
.footer-note { font-size: 13px; max-width: none; line-height: 1.6; }
.footer-social { grid-column: 1; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-top: 1px solid var(--line); padding-top: 14px; font-size: 12px; color: var(--muted);
}
.footer-bottom .top-link { font-size: 12px; color: var(--ink); min-height: 44px; gap: 8px; }
.footer-bottom .top-link svg { width: 15px; height: 15px; }
@media (max-width: 700px) {
  .connect-copy strong { font-size: 13px; }
  .connect-copy > span { font-size: 11px; }
}

/* ---------- Compact header on inner pages: brand once, contact lives in the top bar ---------- */
.compact-masthead .contact-jump { display: none; }
@media (max-width: 700px) {
  .compact-masthead { padding: 12px 0 10px; }
}

/* related-stories heading: title first, section link underneath */
.reading-next .section-head { display: block; }
.reading-next .next-section { margin-top: 2px; }

/* ---------- Card share: one quiet icon everywhere (sharing stays prominent on the article page) ---------- */
@media (min-width: 701px) {
  .featured-item .card-actions { margin: 4px 0 0 146px; justify-content: flex-start; }
  .featured-item .share-trigger { border: 0; background: transparent; color: var(--muted); min-width: 44px; min-height: 40px; padding: 0; justify-content: flex-start; }
  .featured-item .share-trigger span { display: none; }
  .featured-item .share-trigger:hover, .featured-item .share-trigger:focus-visible { color: var(--ink); }
}

/* Codex 2026-11-26: show the complete article cover at its intrinsic ratio on phones. */
@media (max-width: 600px) {
  .reading-aside .cover-wrap { aspect-ratio: auto; height: auto; max-height: none; }
  .reading-aside .cover-wrap img { width: 100%; height: auto; max-height: none; object-fit: contain; }
}
