@media (max-width: 1100px) {
  .brand-copy small { display: none; }
  .desktop-nav { margin-left: 3vw; }
  .desktop-nav a { padding-inline: 9px; }
  .header-search { width: 210px; }
  .hero-content { width: 58%; }
  .hero-poster { right: 5%; width: 220px; }
  .poster-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .home-category-layout-poster { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .featured-rows-1 .featured-grid .media-card:nth-child(n+5),
  .featured-rows-2 .featured-grid .media-card:nth-child(n+9) { display: none; }
}

@media (max-width: 820px) {
  :root { --radius-lg: 24px; }
  body { padding-bottom: 80px; }
  .site-header { top: 10px; width: calc(100% - 24px); min-height: 62px; padding: 9px 10px 9px 12px; border-radius: 19px; }
  .brand-mark { width: 39px; height: 39px; border-radius: 13px; }
  .brand-text-hidden .brand-mark { width: 110px; height: 39px; border-radius: 11px; }
  .brand-copy strong { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .desktop-nav { display: none; }
  .header-actions { min-width: 0; flex: 0 0 auto; justify-content: flex-end; gap: 7px; margin-left: auto; }
  .icon-button.mobile-search-toggle { display: grid; }
  .header-search { position: fixed; top: 72px; right: 12px; left: 12px; z-index: 210; display: flex; width: auto; min-width: 0; height: 42px; padding-left: 12px; border-radius: 13px; background: color-mix(in srgb,var(--surface) 96%,transparent); box-shadow: 0 18px 46px rgba(0,0,0,.26); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
  .header-search input { display: block; min-width: 0; font-size: 12px; }
  .header-search-submit { width: 36px; height: 36px; }
  .header-search.is-mobile-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .header-search.is-mobile-open input { display: block; }
  .header-search.is-mobile-open .header-search-submit { width: 36px; height: 36px; }
  .header-search-panel { right: 0; width: 100%; }
  .header-history-panel { right: -94px; width: calc(100vw - 48px); }
  .icon-button, .profile-button { width: 40px; height: 40px; border-radius: 13px; }
  .hero { width: calc(100% - 24px); height: 36vh; min-height: 315px; margin-top: 86px; }
  .hero-backdrop img { object-position: 62% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(8,10,16,.98) 3%, rgba(8,10,16,.72) 56%, rgba(8,10,16,.16) 100%); }
  .hero-content { top: auto; bottom: 40px; left: 22px; width: calc(100% - 44px); transform: none; }
  .hero-eyebrow-desktop { display: none; }
  .hero-eyebrow-mobile { position: absolute; top: 18px; left: 22px; z-index: 3; display: block; margin: 0; }
  .hero h1 { margin-top: 0; font-size: clamp(28px, 7.5vw, 34px); }
  .hero-summary { margin-block: 10px 14px; font-size: 12px; line-height: 1.55; -webkit-line-clamp: 2; }
  .hero-poster { display: none; }
  .hero-controls { right: 16px; bottom: 13px; }
  .hero-controls > button { display: none; }
  /* 移动端：隐藏桌面端按钮块，显示移动端按钮块 */
  .hero-actions-desktop { display: none; }
  .hero-actions-mobile { display: flex; }
  .content-section { width: calc(100% - 24px); margin-top: 54px; }
  .notice-bar + .content-section { margin-top: 32px; }
  .section-heading { margin-bottom: 16px; }
  .section-heading h2 { font-size: 25px; }
  .section-heading > a { font-size: 11px; }
  .media-row { grid-auto-columns: 42vw; gap: 13px; margin-inline: -12px; padding-inline: 12px; }
  .row-scroll-arrow { display:none; }
  .ranking-row { grid-auto-columns: 82vw; }
  .poster-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px 11px; }
  .home-category-layout-poster { grid-template-columns: repeat(3,minmax(0,1fr)); gap:22px 11px; }
  .home-category-layout-slider { grid-auto-columns:42vw; gap:13px; margin-inline:-12px; padding-inline:12px; }
  .featured-rows-1 .featured-grid .media-card:nth-child(n+4),
  .featured-rows-2 .featured-grid .media-card:nth-child(n+7) { display: none; }
  .split-sections { grid-template-columns: 1fr; gap: 18px; }
  .split-section { padding: 19px 14px; }
  .compact-module .compact-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .home-category-module-compact { padding:19px 14px; }
  .site-footer { display: block; width: calc(100% - 24px); margin-top: 70px; padding: 28px 8px; }
  .footer-links { margin-top: 26px; }
  .mobile-nav {
    position: fixed;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    z-index: 60;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    padding: 9px 8px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    box-shadow: 0 16px 45px rgba(0,0,0,.3);
    backdrop-filter: blur(var(--glass-blur, 24px)) saturate(140%);
  }
  .mobile-nav a { display: flex; align-items: center; flex-direction: column; gap: 3px; color: var(--text-muted); font-size: 10px; text-decoration: none; }
  .mobile-nav a svg { width: 22px; height: 22px; flex: 0 0 auto; }
  .mobile-nav a .mobile-nav-label { font-size: 10px; line-height: 1; }
  .mobile-nav a.is-active { color: var(--accent); }

  body.mobile-account-open { overflow: hidden; }
  .mobile-account[hidden] { display: none; }
  .mobile-account { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center; }
  .mobile-account-backdrop { position: absolute; inset: 0; border: 0; background: rgba(8,10,16,.52); backdrop-filter: blur(5px); opacity: 0; transition: opacity .22s ease; }
  .mobile-account-sheet { position: relative; width: 100%; max-height: min(650px, calc(100dvh - 18px)); overflow: auto; padding: 10px 16px calc(22px + env(safe-area-inset-bottom)); border: 1px solid var(--border); border-radius: 27px 27px 0 0; background: color-mix(in srgb,var(--surface) 96%,transparent); box-shadow: 0 -18px 56px rgba(0,0,0,.3); transform: translateY(100%); transition: transform .28s cubic-bezier(.22,.8,.22,1); }
  .mobile-account.is-open .mobile-account-backdrop { opacity: 1; }
  .mobile-account.is-open .mobile-account-sheet { transform: translateY(0); }
  .mobile-account-handle { width: 40px; height: 4px; margin: 0 auto 16px; border-radius: 99px; background: color-mix(in srgb,var(--text-muted) 38%,transparent); }
  .mobile-account-close { position: absolute; top: 17px; right: 16px; display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 50%; background: var(--surface-soft); color: var(--text-muted); font-size: 20px; line-height: 1; }
  .mobile-account-profile { display: flex; align-items: center; gap: 13px; padding: 2px 4px 16px; }
  .mobile-account-avatar { display: grid; width: 58px; height: 58px; padding: 0; overflow: hidden; flex: 0 0 auto; place-items: center; border: 1px solid color-mix(in srgb,var(--accent) 35%,var(--border)); border-radius: 20px; appearance: none; background: linear-gradient(135deg,color-mix(in srgb,var(--accent) 82%,#fff),var(--accent-2)); color: #fff; cursor: pointer; }
  .mobile-account-avatar svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.7; }
  .mobile-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .mobile-account-profile > div { display: flex; min-width: 0; flex-direction: column; gap: 5px; padding-right: 34px; }
  .mobile-account-profile strong { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-account-profile small { overflow: hidden; color: var(--text-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-account-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0 4px 15px; }
  .mobile-account-auth[hidden], .mobile-account-points[hidden] { display: none; }
  .mobile-account-auth a { display: grid; min-height: 43px; place-items: center; border-radius: 13px; font-size: 12px; font-weight: 800; }
  .mobile-account-login { background: var(--accent); color: #fff; }
  .mobile-account-register { border: 1px solid color-mix(in srgb,var(--accent) 35%,var(--border)); background: color-mix(in srgb,var(--accent) 8%,var(--surface)); color: var(--accent); }
  .mobile-account-points { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 15px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb,var(--accent) 9%,var(--surface)); }
  .mobile-account-points span { color: var(--text-muted); font-size: 11px; font-weight: 700; }
  .mobile-account-points strong { color: var(--accent); font-size: 20px; }
  .mobile-account-links { display: grid; gap: 8px; padding: 0 4px; }
  .mobile-account-links a { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 11px; min-height: 62px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface-soft); }
  .mobile-account-links a > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: color-mix(in srgb,var(--accent) 13%,var(--surface)); color: var(--accent); font-size: 19px; }
  .mobile-account-links a > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
  .mobile-account-links strong { font-size: 13px; }.mobile-account-links small,.mobile-account-links b { color: var(--text-muted); font-size: 10px; }.mobile-account-links b { font-size: 20px; font-weight: 400; }
}

@media (max-width: 520px) {
  .brand-copy strong { max-width: 100px; }
  .hero { height: 28vh; min-height: 248px; border-radius: 22px; }
  .hero-content { bottom: 30px; }
  .hero h1 { font-size: 28px; }
  .hero-meta span:nth-last-child(2) { display: none; }
  .hero-actions .button { min-height: 40px; padding-inline: 15px; font-size: 12px; }
  [data-module-id="latest"] .poster-grid,
  [data-module-id="discover"] .poster-grid,
  .featured-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px 8px; }
  .compact-grid, .compact-module .compact-grid { grid-template-columns: 1fr; }
  .home-category-layout-compact { grid-template-columns:1fr; }
  .card-copy h3 { font-size: 13px; }
  .douban-score { top: 7px; left: 7px; min-height: 24px; gap: 4px; padding: 3px 6px 3px 4px; border-radius: 8px; font-size: 10px; }
  .douban-score img { width: 16px; height: 16px; border-radius: 4px; }
  .footer-links { flex-wrap: wrap; }
}

@media (max-width: 380px) {
  .brand-copy { display: none; }
}
