/* 影视大全：清爽目录型影库界面 */
:root {
  color-scheme: light;
  --ink: #1A242B;
  --muted: #5A6872;
  --brand: #143642;
  --brand-soft: #2B6E7D;
  --night: #0B1920;
  --canvas: #F5F6F8;
  --paper: #FFFFFF;
  --accent: #C85019;
  --line: #E1E6E9;
  --line-strong: #D3DCE0;
  --radius: 6px;
  --container: 1240px;
  --shadow: 0 5px 20px rgba(20, 54, 66, .055);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-soft); }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.skip-link {
  position: absolute; z-index: 1000; left: 12px; top: -60px;
  padding: 8px 14px; background: var(--brand); color: #fff; border-radius: 4px;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(12px);
}
.header-inner {
  width: min(1320px, calc(100% - 48px)); min-height: 76px; margin: auto;
  display: flex; align-items: center; gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; color: var(--brand); }
.brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 5px; }
.brand span { display: flex; flex-direction: column; line-height: 1.25; }
.brand strong { font-size: 20px; letter-spacing: .02em; font-weight: 800; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.main-nav { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.nav-link { padding: 9px 13px; color: #48565D; font-size: 14px; border-radius: 4px; transition: .2s ease; }
.nav-link:hover, .nav-link.is-current { color: var(--brand); background: #EDF3F4; }
.header-action {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 12px;
  padding: 9px 15px; color: #fff; background: var(--brand); border: 1px solid var(--brand);
  border-radius: 4px; font-size: 13px; font-weight: 700;
}
.header-action:hover { color: #fff; background: var(--brand-soft); }
.header-action span { color: #F1B18F; font-size: 17px; line-height: 1; }
.intro-band {
  background: linear-gradient(115deg, #F5F6F8 0%, #F0F4F5 58%, #E9F0F1 100%);
  border-bottom: 1px solid #E6EBED; overflow: hidden;
}
.intro-grid { min-height: 310px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 64px; align-items: center; padding-block: 43px 48px; }
.eyebrow, .section-kicker {
  margin: 0 0 9px; color: var(--brand-soft); font-size: 12px; font-weight: 800; letter-spacing: .08em;
}
.eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(200,80,25,.1); }
.intro-copy h1 { margin: 0; color: var(--brand); font-size: clamp(30px, 4vw, 43px); line-height: 1.25; letter-spacing: -.035em; font-weight: 800; }
.intro-copy h1 span { display: block; margin-top: 5px; color: #40545D; font-size: clamp(20px, 2.5vw, 27px); font-weight: 650; letter-spacing: -.02em; }
.intro-lead { max-width: 720px; margin: 17px 0 18px; color: #4F6068; font-size: 15px; line-height: 1.9; }
.intro-points { display: flex; flex-wrap: wrap; gap: 10px 22px; color: #40535B; font-size: 13px; }
.intro-points span { display: inline-flex; align-items: center; gap: 7px; }
.intro-points i { display: inline-grid; place-items: center; width: 17px; height: 17px; color: #fff; background: var(--brand-soft); border-radius: 50%; font-size: 10px; font-style: normal; }
.intro-side { padding: 22px 23px 19px; background: #fff; border: 1px solid #DCE5E8; border-top: 3px solid var(--brand); border-radius: 5px; box-shadow: var(--shadow); }
.side-topline, .side-meta { display: flex; justify-content: space-between; align-items: center; }
.side-topline { color: var(--brand); font-size: 13px; font-weight: 800; }
.side-live { color: #4E7B68; background: #EAF4EE; padding: 3px 8px; border-radius: 3px; font-size: 10px; }
.side-stat { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 9px; }
.side-stat strong { color: var(--brand); font-size: 42px; line-height: 1.1; letter-spacing: -.04em; }
.side-stat span { color: var(--muted); font-size: 12px; }
.side-rule { height: 1px; background: var(--line); margin: 15px 0; }
.side-meta { margin-top: 9px; gap: 12px; font-size: 11px; }
.side-meta span { color: #77858C; }
.side-meta strong { color: #34464E; font-size: 11px; font-weight: 700; text-align: right; }
.intro-side > p { margin: 14px 0 0; color: #78858B; font-size: 11px; line-height: 1.6; }
.discovery { padding-top: 35px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; color: var(--brand); font-size: 24px; line-height: 1.35; font-weight: 800; letter-spacing: -.025em; }
.section-description { max-width: 800px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.compact-heading { align-items: center; }
.heading-note { color: #7B878D; font-size: 12px; }
.discovery-panel { padding: 17px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.category-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.category-tab { min-height: 60px; display: flex; flex-direction: column; justify-content: center; padding: 8px 13px; border: 1px solid var(--line); border-radius: 4px; background: #FAFBFC; transition: .18s ease; }
.category-tab span { color: #31444C; font-size: 14px; font-weight: 750; }
.category-tab small { margin-top: 2px; color: #87939A; font-size: 10px; }
.category-tab:hover, .category-tab.active { border-color: #8EABB3; background: #EDF4F5; }
.category-tab.active span { color: var(--brand); }
.search-form { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 13px; }
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-53%); color: #7A8990; font-size: 25px; line-height: 1; pointer-events: none; }
.search-form input { width: 100%; min-width: 0; height: 46px; padding: 0 14px 0 43px; color: var(--ink); background: #FBFCFC; border: 1px solid var(--line-strong); border-radius: 4px; outline: none; }
.search-form input:focus { border-color: var(--brand-soft); box-shadow: 0 0 0 3px rgba(43,110,125,.1); }
.search-form button, .button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: 4px; font-size: 13px; font-weight: 800; white-space: nowrap; transition: .2s ease; }
.search-form button:hover, .button:hover { color: #fff; background: #A94113; border-color: #A94113; }
.library-section { padding-top: 46px; }
.result-count { display: flex; align-items: baseline; gap: 6px; padding: 6px 11px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; white-space: nowrap; }
.result-count strong { color: var(--accent); font-size: 20px; }
.movie-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 25px 17px; }
.movie-card { min-width: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.movie-card:hover { transform: translateY(-3px); border-color: #C7D4D8; box-shadow: 0 10px 25px rgba(20,54,66,.09); }
.poster-link { position: relative; display: block; overflow: hidden; aspect-ratio: 2 / 3; background: #DDE5E8; }
.poster { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.movie-card:hover .poster { transform: scale(1.035); }
.poster-status { position: absolute; top: 9px; left: 9px; padding: 3px 7px; color: #fff; background: rgba(20,54,66,.91); border-radius: 3px; font-size: 10px; font-weight: 750; }
.poster-play { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 30px; height: 30px; color: #fff; background: var(--accent); border-radius: 4px; font-size: 20px; line-height: 1; opacity: .95; }
.movie-info { padding: 11px 11px 13px; }
.movie-meta { display: flex; justify-content: space-between; gap: 5px; color: #829097; font-size: 10px; }
.movie-meta span:first-child { color: var(--brand-soft); font-weight: 800; }
.movie-info h3 { overflow: hidden; margin: 5px 0 4px; color: #20343D; font-size: 15px; font-weight: 800; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.movie-info h3 a:hover { color: var(--accent); }
.movie-info p { display: -webkit-box; min-height: 43px; overflow: hidden; margin: 0; color: #6C7A81; font-size: 11px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.badge-row, .detail-row-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.badge { display: inline-flex; align-items: center; padding: 2px 6px; color: #55717A; background: #F0F5F6; border: 1px solid #E4ECEE; border-radius: 3px; font-size: 9px; line-height: 1.5; }
.empty-state { padding: 55px 20px; text-align: center; background: #fff; border: 1px dashed var(--line-strong); border-radius: 5px; }
.empty-icon { display: block; color: #8AA1A8; font-size: 40px; line-height: 1; }
.empty-state h3 { margin: 10px 0 4px; color: var(--brand); font-size: 18px; }
.empty-state p { margin: 0 0 15px; color: var(--muted); font-size: 13px; }
.button-secondary { min-height: 37px; color: var(--brand); background: #fff; border-color: var(--line-strong); }
.button-secondary:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
.edition-section, .editorial-section, .detail-index-section, .access-section { padding-top: 54px; }
.edition-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.edition-card { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 13px; padding: 19px 18px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.edition-number { color: #C5D2D6; font-size: 25px; line-height: 1.25; font-weight: 800; }
.edition-card h3, .editorial-card h3 { margin: 0 0 7px; color: var(--brand); font-size: 16px; font-weight: 800; }
.edition-card p, .editorial-card p { margin: 0; color: #68777E; font-size: 12px; line-height: 1.8; }
.edition-card ul { display: grid; gap: 4px; margin: 12px 0 0; padding: 0; list-style: none; }
.edition-card li { position: relative; padding-left: 13px; color: #50636B; font-size: 11px; }
.edition-card li::before { position: absolute; left: 0; top: .65em; width: 5px; height: 5px; content: ""; background: var(--accent); border-radius: 50%; }
.editorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.editorial-card { position: relative; min-height: 220px; padding: 21px 20px 17px; background: #fff; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.editorial-mark { position: absolute; top: 10px; right: 15px; color: #EDF2F3; font-size: 66px; line-height: 1; font-weight: 900; pointer-events: none; }
.editorial-card h3, .editorial-card p, .editorial-examples { position: relative; z-index: 1; }
.editorial-card h3 { padding-right: 50px; }
.editorial-card p { min-height: 66px; }
.editorial-examples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 15px; padding-top: 11px; border-top: 1px solid #EEF1F2; }
.editorial-examples span { width: 100%; color: #89959A; font-size: 10px; }
.editorial-examples b { padding: 3px 7px; color: #4D6871; background: #F2F6F7; border-radius: 3px; font-size: 10px; font-weight: 650; }
.detail-list { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.detail-row { display: flex; justify-content: space-between; gap: 25px; padding: 16px 19px; border-bottom: 1px solid #EDF0F1; scroll-margin-top: 100px; }
.detail-row:last-child { border-bottom: 0; }
.detail-row-main { min-width: 0; }
.detail-type { color: var(--brand-soft); font-size: 10px; font-weight: 800; }
.detail-row h3 { margin: 2px 0 3px; color: #263B44; font-size: 14px; }
.detail-row p { max-width: 850px; margin: 0; color: #718087; font-size: 11px; line-height: 1.7; }
.detail-row-tags { flex: 0 0 180px; align-content: center; justify-content: flex-end; margin-top: 0; }
.access-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 45px; padding: 28px 30px; background: var(--brand); border-radius: 5px; color: #fff; }
.access-copy .section-kicker { color: #A7C6CE; }
.access-copy h2 { margin: 0 0 10px; color: #fff; font-size: 24px; line-height: 1.4; }
.access-copy > p:last-child { margin: 0; color: #D0DEE2; font-size: 12px; line-height: 1.9; }
.access-features { display: grid; gap: 13px; }
.access-feature { display: flex; gap: 12px; align-items: flex-start; }
.feature-check { flex: 0 0 22px; display: grid; place-items: center; width: 22px; height: 22px; color: var(--brand); background: #E8F2F4; border-radius: 50%; font-size: 12px; font-weight: 900; }
.access-feature h3 { margin: 0 0 2px; color: #fff; font-size: 13px; }
.access-feature p { margin: 0; color: #C1D2D7; font-size: 11px; line-height: 1.65; }
.site-footer { margin-top: 55px; background: #fff; border-top: 1px solid var(--line); }
.footer-main { width: min(var(--container), calc(100% - 48px)); display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 45px; margin: auto; padding: 36px 0 30px; }
.brand-footer img { width: 38px; height: 38px; }
.brand-footer strong { font-size: 18px; }
.footer-brand > p { max-width: 360px; margin: 13px 0 0; color: #7B888E; font-size: 11px; line-height: 1.8; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-links strong { margin-bottom: 4px; color: var(--brand); font-size: 12px; }
.footer-links a { color: #75838A; font-size: 11px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; width: min(var(--container), calc(100% - 48px)); margin: auto; padding: 13px 0 17px; color: #97A1A6; border-top: 1px solid #EEF1F2; font-size: 10px; }
:focus-visible { outline: 3px solid rgba(200,80,25,.55); outline-offset: 3px; }
@media (max-width: 1100px) {
  .header-inner { gap: 18px; }
  .main-nav { gap: 0; }
  .nav-link { padding-inline: 9px; }
  .movie-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .intro-grid { gap: 35px; }
}
@media (max-width: 820px) {
  .header-inner { width: min(100% - 32px, 700px); min-height: 68px; flex-wrap: wrap; gap: 0; padding: 10px 0; }
  .brand img { width: 37px; height: 37px; }
  .brand strong { font-size: 18px; }
  .main-nav { order: 3; width: 100%; margin: 9px 0 0; overflow-x: auto; scrollbar-width: thin; }
  .nav-link { flex: 0 0 auto; padding: 6px 11px; font-size: 12px; }
  .header-action { margin-left: auto; padding: 7px 11px; font-size: 11px; }
  .intro-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; padding-block: 34px; }
  .intro-side { padding: 17px; }
  .container { width: min(100% - 32px, 700px); }
  .movie-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px 12px; }
  .edition-grid, .editorial-grid { grid-template-columns: 1fr; }
  .edition-card { grid-template-columns: 35px minmax(0,1fr); }
  .editorial-card { min-height: auto; }
  .editorial-card p { min-height: 0; }
  .access-panel { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .footer-main { width: min(100% - 32px, 700px); gap: 25px; }
  .footer-bottom { width: min(100% - 32px, 700px); }
}
@media (max-width: 560px) {
  body { font-size: 14px; }
  .container { width: calc(100% - 28px); }
  .header-inner { width: calc(100% - 28px); }
  .header-action { gap: 5px; }
  .intro-grid { grid-template-columns: 1fr; gap: 20px; padding-block: 29px; }
  .intro-copy h1 { font-size: 31px; }
  .intro-copy h1 span { font-size: 20px; }
  .intro-lead { margin-top: 12px; font-size: 13px; }
  .intro-points { gap: 8px 13px; font-size: 11px; }
  .intro-side { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; padding: 14px; }
  .side-topline, .side-stat, .side-rule, .intro-side > p { grid-column: 1 / -1; }
  .side-stat strong { font-size: 34px; }
  .side-meta { display: block; }
  .side-meta strong { display: block; margin-top: 3px; text-align: left; }
  .side-rule { margin: 10px 0; }
  .discovery { padding-top: 26px; }
  .section-heading { align-items: flex-start; margin-bottom: 13px; }
  .section-heading h2 { font-size: 20px; }
  .section-description { font-size: 11px; }
  .heading-note { display: none; }
  .discovery-panel { padding: 11px; }
  .category-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .category-tab { min-height: 52px; padding: 6px 8px; }
  .category-tab span { font-size: 12px; }
  .category-tab small { font-size: 9px; }
  .search-form { gap: 6px; }
  .search-form input { height: 42px; padding-left: 36px; font-size: 12px; }
  .search-icon { left: 11px; font-size: 21px; }
  .search-form button { min-height: 42px; padding-inline: 12px; font-size: 11px; }
  .library-section, .edition-section, .editorial-section, .detail-index-section, .access-section { padding-top: 37px; }
  .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 10px; }
  .movie-info { padding: 9px; }
  .movie-info h3 { font-size: 13px; }
  .movie-info p { min-height: 40px; font-size: 10px; }
  .movie-meta { font-size: 9px; }
  .badge { font-size: 8px; }
  .result-count { padding: 4px 7px; }
  .result-count strong { font-size: 16px; }
  .detail-row { display: block; padding: 13px; }
  .detail-row-tags { justify-content: flex-start; margin-top: 8px; }
  .access-panel { padding: 20px 17px; }
  .access-copy h2 { font-size: 20px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 23px 15px; padding-top: 27px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 4px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* 细节状态：筛选、片目定位、打印与窄屏可读性 */
.category-tab:focus-visible,
.poster-link:focus-visible,
.movie-info h3 a:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid rgba(200, 80, 25, .5);
  outline-offset: 2px;
}
.category-tab:active,
.header-action:active,
.search-form button:active {
  transform: translateY(1px);
}
.detail-row:target {
  background: #FFF9F5;
  box-shadow: inset 3px 0 0 var(--accent);
}
.detail-row:target h3 { color: #A94113; }
.movie-card:focus-within {
  border-color: #9AB4BB;
  box-shadow: 0 0 0 3px rgba(43, 110, 125, .09);
}
.poster-link::after {
  position: absolute;
  inset: 45% 0 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(11, 25, 32, .24));
  opacity: .45;
  transition: opacity .2s ease;
}
.movie-card:hover .poster-link::after { opacity: .8; }
.movie-info h3 a { display: inline-block; max-width: 100%; }
.movie-info h3 a:focus-visible { border-radius: 2px; }
.search-form input::placeholder { color: #9AA5AA; opacity: 1; }
.search-form input::-webkit-search-cancel-button { cursor: pointer; }
.search-form button:focus-visible,
.button:focus-visible,
.header-action:focus-visible {
  outline-offset: 3px;
}
.section-heading > div { min-width: 0; }
.section-heading .section-description { max-width: 760px; }
.detail-row-main { overflow-wrap: anywhere; }
.editorial-examples b { transition: background .18s ease, color .18s ease; }
.editorial-card:hover .editorial-examples b {
  color: var(--brand);
  background: #E8F0F2;
}
.access-feature { min-width: 0; }
.access-feature p { max-width: 560px; }
.site-footer a:focus-visible { outline-offset: 1px; }
@media (min-width: 1200px) {
  .movie-grid { column-gap: 19px; }
  .movie-info { padding-inline: 12px; }
  .intro-grid { min-height: 330px; }
}
@media (max-width: 980px) {
  .main-nav { max-width: 100%; }
  .intro-grid { grid-template-columns: minmax(0, 1fr) 285px; }
  .intro-copy h1 { font-size: 36px; }
  .movie-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .detail-row-tags { flex-basis: 150px; }
}
@media (max-width: 700px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-side { max-width: none; }
  .movie-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-heading { align-items: flex-start; }
  .result-count { margin-top: 5px; }
  .footer-main { grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
  .footer-brand { grid-column: auto; }
}
@media (max-width: 430px) {
  .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .movie-info p { font-size: 10px; }
  .poster-status { top: 6px; left: 6px; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .poster-play { right: 7px; bottom: 7px; width: 27px; height: 27px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media print {
  :root { --canvas: #fff; }
  body { color: #111; background: #fff; font-size: 11pt; }
  .site-header, .search-form, .header-action, .poster-play, .site-footer { display: none !important; }
  .container { width: 100%; }
  .intro-band { background: #fff; }
  .intro-grid { min-height: 0; grid-template-columns: 1fr; padding: 15px 0; }
  .intro-side { display: none; }
  .movie-grid { grid-template-columns: repeat(4, 1fr); }
  .movie-card, .edition-card, .editorial-card { break-inside: avoid; box-shadow: none; }
  .library-section, .edition-section, .editorial-section, .detail-index-section { break-before: auto; }
  a { text-decoration: none; }
}

/* 辅助排版：提升长列表、空结果与设备缩放时的阅读稳定性 */
.movie-card, .edition-card, .editorial-card, .detail-row, .access-feature { min-width: 0; }
.movie-info, .detail-row-main, .footer-brand { overflow-wrap: anywhere; }
.movie-info .badge-row { min-height: 21px; }
.poster-link img { color: #52636B; font-size: 12px; text-align: center; }
.category-tab small, .movie-meta span, .detail-type { overflow-wrap: anywhere; }
.search-form button { flex: 0 0 auto; }
.search-form input { appearance: none; }
.search-form input:focus-visible { outline: 0; }
.category-tabs a { text-decoration: none; }
.category-tabs a:focus-visible { position: relative; z-index: 2; }
.detail-row:target { scroll-margin-top: 105px; }
.intro-side, .discovery-panel, .detail-list { contain: paint; }
.edition-card:hover { border-color: #C7D5D9; }
.edition-number { user-select: none; }
.editorial-mark { user-select: none; }
.movie-meta { align-items: center; }
.movie-meta span:last-child { text-align: right; }
.footer-bottom span { overflow-wrap: anywhere; }
@media (min-width: 821px) {
  .main-nav { white-space: nowrap; }
  .header-inner { justify-content: space-between; }
  .intro-copy { padding-block: 8px; }
  .intro-side { align-self: center; }
}
@media (max-width: 820px) {
  .header-inner { justify-content: space-between; }
  .main-nav { order: 3; }
  .intro-grid { align-items: stretch; }
  .intro-side { align-self: stretch; }
}
@media (max-width: 560px) {
  .footer-links { gap: 5px; }
  .footer-links strong { font-size: 11px; }
  .footer-links a { font-size: 10px; }
  .intro-points span { white-space: nowrap; }
  .category-tab { overflow: hidden; }
  .category-tab small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .section-kicker { margin-bottom: 6px; }
  .edition-card { padding: 15px 13px; }
  .editorial-card { padding: 17px 15px; }
}
@media (max-width: 360px) {
  .brand small { font-size: 9px; }
  .header-action { padding-inline: 8px; }
  .nav-link { padding-inline: 8px; }
  .movie-meta { display: block; }
  .movie-meta span { display: block; text-align: left !important; }
  .search-form button { padding-inline: 9px; }
}
/* 低宽度设备的内容优先级与横向滚动控制 */
html, body { max-width: 100%; overflow-x: clip; }
.main-nav, .category-tabs, .movie-grid, .edition-grid, .editorial-grid { min-width: 0; }
.brand { min-width: 0; }
.brand span { min-width: 0; }
.brand strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-action { white-space: nowrap; }
.poster-link { isolation: isolate; }
.poster-status { z-index: 2; }
.poster-play { z-index: 2; }
.movie-info h3 { overflow-wrap: anywhere; }
.empty-state .button { margin-top: 2px; }
.access-panel { overflow: hidden; }
.access-feature > div { min-width: 0; }
@media (max-width: 820px) {
  .main-nav { overscroll-behavior-inline: contain; }
  .main-nav::-webkit-scrollbar { height: 3px; }
  .main-nav::-webkit-scrollbar-thumb { background: #C7D5D9; border-radius: 3px; }
  .header-action { align-self: center; }
}
@media (max-width: 560px) {
  .section-heading { flex-wrap: wrap; }
  .section-heading > div { flex: 1 1 100%; }
  .result-count { margin-left: auto; }
  .intro-side > p { font-size: 10px; }
  .access-feature { gap: 9px; }
  .access-feature h3 { font-size: 12px; }
  .access-feature p { font-size: 10px; }
}
