@charset "UTF-8";

/* 片库网：暗室冷灰与胶片暖琥珀的档案目录视觉系统 */
:root {
    color-scheme: dark;
    --ink: #0B0E11;
    --canvas: #12161B;
    --panel: #1B2128;
    --panel-raised: #202832;
    --line: rgba(190, 204, 218, .13);
    --line-strong: rgba(190, 204, 218, .22);
    --text: #E6E9ED;
    --muted: #8E98A4;
    --amber: #D9822B;
    --gold: #F0A848;
    --teal: #3A7D8C;
    --radius: 5px;
    --container: 1240px;
    --shadow-soft: 0 12px 32px rgba(0,0,0,.18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body {
    margin: 0;
    min-width: 320px;
    background: var(--canvas);
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}
img { display: block; max-width: 100%; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.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; }
.skip-link { position: absolute; z-index: 100; left: 12px; top: -60px; padding: 9px 14px; color: #111; background: var(--gold); }
.skip-link:focus { top: 12px; }

/* 顶部导航 */
.site-header { position: relative; z-index: 20; background: rgba(11,14,17,.97); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 4px; }
.brand span { display: grid; line-height: 1.25; }
.brand strong { font-size: 21px; letter-spacing: .04em; color: var(--text); }
.brand small { margin-top: 4px; font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 2vw, 27px); flex: 1; }
.primary-nav a { position: relative; padding: 27px 0 25px; color: #B7C0C9; font-size: 14px; white-space: nowrap; }
.primary-nav a::after { position: absolute; content: ""; left: 0; right: 0; bottom: 17px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.primary-nav a:hover, .primary-nav a.active { color: var(--gold); }
.primary-nav a:hover::after, .primary-nav a.active::after { transform: scaleX(1); }
.header-search-link { padding: 7px 17px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--gold); font-size: 13px; }
.nav-toggle { display: none; width: 40px; height: 38px; padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: transparent; }
.nav-toggle span { display: block; width: 100%; height: 2px; margin: 4px 0; background: var(--text); }

/* 首页首屏与索引 */
.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr); gap: 46px; padding-top: 54px; padding-bottom: 46px; align-items: center; }
.hero-copy { min-width: 0; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(217,130,43,.12); }
.hero h1 { margin: 18px 0 13px; font-size: clamp(30px, 4.1vw, 48px); line-height: 1.22; letter-spacing: -.035em; }
.hero h1 span { display: block; margin-top: 8px; color: var(--gold); font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.02em; }
.hero-lead { max-width: 680px; margin: 0; color: #AEB7C1; font-size: 15px; line-height: 1.9; }
.hero-search { display: flex; max-width: 650px; margin-top: 25px; padding: 5px; background: #20262D; border: 1px solid var(--line-strong); border-radius: 5px; }
.hero-search input { flex: 1; min-width: 0; padding: 11px 13px; color: var(--text); background: transparent; border: 0; outline: 0; }
.hero-search input::placeholder { color: #77828D; }
.hero-search button { min-width: 112px; padding: 10px 17px; color: #17130F; background: var(--gold); border: 0; border-radius: 3px; font-weight: 700; cursor: pointer; }
.hero-search button:hover { background: #FFC16A; }
.hero-quick-links { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.hero-quick-links a { padding: 2px 9px; color: #B5C0C9; border: 1px solid var(--line); border-radius: 3px; }
.hero-index { padding: 22px 23px 19px; background: linear-gradient(145deg, #1D252D, #171D23); border: 1px solid var(--line-strong); border-top: 2px solid var(--amber); border-radius: var(--radius); }
.index-heading { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 700; }
.index-mark { color: var(--muted); font-size: 11px; font-weight: 400; }
.index-stat-row { display: flex; gap: 35px; padding: 17px 0 16px; margin-top: 10px; border-bottom: 1px solid var(--line); }
.index-stat-row div { display: grid; }
.index-stat-row strong { color: var(--gold); font-size: 27px; line-height: 1.2; }
.index-stat-row span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.index-links { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; padding-top: 15px; }
.index-links a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; padding: 8px 9px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 3px; }
.index-links a span { font-size: 13px; font-weight: 700; }
.index-links a small { color: var(--muted); font-size: 10px; }
.index-links a b { color: var(--teal); font-size: 13px; }
.index-footnote { margin: 13px 0 0; color: var(--muted); font-size: 11px; }

/* 快速筛选 */
.filter-strip { padding: 23px 25px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; }
.section-heading h2 { margin: 5px 0 0; font-size: 25px; line-height: 1.35; letter-spacing: -.02em; }
.section-heading p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.compact-heading { align-items: center; margin-bottom: 15px; }
.compact-heading h2 { font-size: 19px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--gold); font-size: 13px; white-space: nowrap; }
.text-link span { font-size: 18px; transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }
.filter-groups { display: grid; gap: 11px; }
.filter-group { display: grid; grid-template-columns: 82px 1fr; align-items: start; gap: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.filter-group > strong { padding-top: 3px; color: #C8D0D8; font-size: 12px; }
.filter-group > div { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-group a { padding: 3px 10px; color: #AAB5BF; background: #151B20; border: 1px solid var(--line); border-radius: 3px; font-size: 12px; }
.filter-group a:hover { color: var(--gold); border-color: rgba(240,168,72,.5); }

/* 内容网格与海报卡片 */
.content-section { padding-top: 56px; padding-bottom: 5px; }
.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 17px; }
.media-card { min-width: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .2s, background .2s; }
.media-card:hover { transform: translateY(-3px); border-color: rgba(217,130,43,.55); background: #202831; }
.poster-link { position: relative; display: block; overflow: hidden; background: #202830; aspect-ratio: 5 / 7; }
.poster { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.media-card:hover .poster { transform: scale(1.035); }
.poster-quality { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; color: #E8F2F3; background: rgba(25,88,99,.88); border: 1px solid rgba(153,220,226,.2); border-radius: 3px; font-size: 10px; font-weight: 700; }
.media-card-body { padding: 11px 12px 12px; }
.media-meta, .card-foot { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; }
.media-meta span:first-child { color: var(--teal); }
.media-card h3 { overflow: hidden; margin: 5px 0 4px; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.card-summary { display: -webkit-box; min-height: 42px; margin: 0 0 9px; overflow: hidden; color: #9BA6B1; font-size: 11px; line-height: 1.65; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-foot { padding-top: 8px; border-top: 1px solid var(--line); }
.card-foot span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 垂类入口 */
.secondary-section { margin-top: 56px; padding: 45px 0 48px; background: #151B21; border-block: 1px solid var(--line); }
.secondary-section .section-heading { margin-bottom: 20px; }
.category-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.category-feature { display: grid; grid-template-columns: 46px 1fr 15px; align-items: start; gap: 14px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.category-symbol { display: grid; width: 44px; height: 44px; place-items: center; color: var(--gold); background: rgba(217,130,43,.1); border: 1px solid rgba(217,130,43,.3); border-radius: 4px; font-size: 19px; font-weight: 700; }
.category-feature h3 { margin: 0 0 5px; font-size: 16px; }
.category-feature p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.category-feature .feature-count { display: inline-block; margin-top: 10px; color: var(--teal); font-size: 11px; }
.category-feature > b { color: var(--gold); }

/* 主题片单 */
.collection-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 13px; }
.collection-card { position: relative; min-width: 0; padding: 0 0 14px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.collection-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #252E37; opacity: .83; }
.collection-label { display: inline-block; margin: 12px 13px 0; color: var(--teal); font-size: 10px; }
.collection-card h3 { margin: 3px 13px 5px; font-size: 16px; }
.collection-card p { min-height: 63px; margin: 0 13px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.collection-more { display: flex; justify-content: space-between; margin: 10px 13px 0; padding-top: 9px; color: var(--gold); border-top: 1px solid var(--line); font-size: 11px; }
.collection-more b { font-size: 16px; }

/* 指南与目录 */
.guide-band { margin-top: 58px; padding: 42px 0; background: #1A2229; border-block: 1px solid var(--line); }
.guide-content { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.guide-content h2 { margin: 7px 0 10px; font-size: 25px; }
.guide-content > div:first-child p { max-width: 690px; margin: 0; color: #A5B0BA; font-size: 13px; line-height: 1.9; }
.guide-points { display: grid; gap: 13px; }
.guide-points > div { display: flex; gap: 14px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.guide-points > div > b { color: var(--amber); font-size: 20px; font-weight: 500; }
.guide-points span { display: grid; }
.guide-points strong { font-size: 13px; }
.guide-points small { color: var(--muted); font-size: 11px; }
.bottom-directory { padding-bottom: 58px; }
.directory-columns { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 20px; }
.directory-columns > div { padding: 14px; background: var(--panel); border-top: 2px solid var(--teal); }
.directory-columns h3 { margin: 0; font-size: 14px; }
.directory-columns p { min-height: 63px; margin: 8px 0; color: var(--muted); font-size: 11px; }
.small-link { color: var(--gold); font-size: 11px; }

/* 内页通用 */
.page-main { min-height: 55vh; padding-top: 24px; padding-bottom: 70px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0 0 23px; color: var(--muted); font-size: 12px; }
.breadcrumb > span { color: #5D6974; }
.breadcrumb [aria-current="page"] { color: #D5DCE2; }
.page-intro { max-width: 850px; padding: 23px 0 26px; border-bottom: 1px solid var(--line); }
.page-intro h1 { margin: 8px 0 10px; font-size: clamp(29px, 3.5vw, 39px); line-height: 1.3; }
.page-intro > p { max-width: 790px; margin: 0; color: #A8B2BC; font-size: 14px; line-height: 1.9; }
.intro-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.intro-meta span { padding: 4px 9px; color: var(--teal); background: rgba(58,125,140,.1); border: 1px solid rgba(58,125,140,.25); border-radius: 3px; font-size: 11px; }
.listing-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 27px 0 16px; }
.listing-toolbar h2 { margin: 0; font-size: 19px; }
.listing-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.listing-grid .media-card { display: grid; grid-template-columns: minmax(110px, .72fr) 1fr; }
.listing-grid .poster-link { aspect-ratio: 5 / 6; }
.listing-grid .media-card-body { display: flex; flex-direction: column; justify-content: center; padding: 14px; }
.listing-grid .media-card h3 { font-size: 16px; white-space: normal; }
.listing-grid .card-summary { min-height: 0; margin: 4px 0 15px; -webkit-line-clamp: 4; }
.listing-grid .card-foot { margin-top: auto; flex-wrap: wrap; }
.pagination { display: flex; justify-content: center; gap: 7px; margin-top: 28px; }
.pagination a, .pagination span { display: grid; min-width: 34px; height: 34px; place-items: center; border: 1px solid var(--line-strong); border-radius: 3px; color: #B7C1CA; font-size: 12px; }
.pagination .current { color: #17130F; background: var(--gold); border-color: var(--gold); font-weight: 700; }
.category-reading { max-width: 900px; margin-top: 45px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.category-reading h2 { margin: 0 0 10px; font-size: 18px; }
.category-reading p { margin: 8px 0 0; color: #A6B0BA; font-size: 13px; line-height: 1.9; }

/* 百万片库详情 */
.collection-intro { max-width: 950px; }
.collection-detail-list { display: grid; gap: 17px; margin-top: 26px; }
.collection-detail { display: grid; grid-template-columns: minmax(250px, .8fr) 1.2fr; gap: 25px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 18px; }
.collection-detail-image { position: relative; min-height: 210px; overflow: hidden; background: #242D35; border-radius: 3px; }
.collection-detail-image img { width: 100%; height: 100%; min-height: 210px; object-fit: cover; }
.collection-detail-image > span { position: absolute; left: 12px; bottom: 12px; padding: 4px 9px; color: #F5F6F7; background: rgba(11,14,17,.8); border-left: 2px solid var(--amber); font-size: 11px; }
.collection-detail-copy h2 { margin: 5px 0 7px; font-size: 23px; }
.collection-detail-copy > p { margin: 0; color: #A6B0BA; font-size: 13px; line-height: 1.8; }
.collection-focus { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; padding: 9px 11px; background: #151B20; font-size: 11px; }
.collection-focus strong { color: var(--teal); }
.collection-focus span { color: #C0C9D1; }
.mini-media-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 13px; }
.mini-media-list a { display: grid; gap: 2px; padding: 8px; background: #151B20; border: 1px solid var(--line); font-size: 11px; }
.mini-media-list a span { color: var(--muted); font-size: 10px; }
.collection-method { margin-top: 34px; padding: 24px; background: #182128; border: 1px solid var(--line); }
.collection-method h2 { margin: 0 0 16px; font-size: 19px; }
.method-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.method-grid > div { padding: 14px; background: rgba(255,255,255,.025); border-left: 2px solid var(--teal); }
.method-grid b { font-size: 13px; }
.method-grid p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }

/* 详情页 */
.detail-layout { display: grid; grid-template-columns: minmax(220px, 310px) minmax(0,1fr); gap: 38px; padding-top: 10px; }
.detail-poster-wrap { align-self: start; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.detail-poster { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; background: #26313A; }
.poster-caption { display: flex; justify-content: space-between; gap: 8px; padding: 9px 2px 1px; color: var(--teal); font-size: 11px; }
.detail-copy h1 { margin: 6px 0 10px; font-size: clamp(30px, 4vw, 42px); line-height: 1.25; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-meta span { padding: 3px 9px; color: #BBC5CE; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; font-size: 11px; }
.detail-summary { margin: 19px 0 13px; color: #D1D8DE; font-size: 16px; line-height: 1.8; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list a { padding: 3px 9px; color: var(--teal); background: rgba(58,125,140,.1); border: 1px solid rgba(58,125,140,.25); border-radius: 3px; font-size: 11px; }
.story-section { margin-top: 27px; }
.story-section h2, .episode-section h2 { margin: 0 0 9px; font-size: 18px; }
.story-section p { margin: 0; color: #AAB4BE; font-size: 13px; line-height: 2; }
.play-panel { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 17px; background: rgba(217,130,43,.07); border: 1px solid rgba(217,130,43,.25); border-radius: var(--radius); }
.play-panel-icon { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; color: #17130F; background: var(--gold); border-radius: 50%; font-size: 13px; }
.play-panel h2 { margin: 0 0 4px; font-size: 15px; }
.play-panel p { margin: 0; color: #B8C0C8; font-size: 12px; line-height: 1.8; }
.episode-section { margin-top: 25px; }
.subsection-heading { display: flex; justify-content: space-between; align-items: center; }
.subsection-heading > span { color: var(--muted); font-size: 11px; }
.episode-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; padding: 0; margin: 10px 0 0; list-style: none; counter-reset: episode; }
.episode-list li { display: flex; justify-content: space-between; gap: 8px; padding: 9px 11px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; }
.episode-list small { color: var(--muted); white-space: nowrap; }
.related-section { padding-top: 52px; }
.related-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }

/* 检索与空状态 */
.search-intro { padding-bottom: 20px; }
.search-form { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 11px; align-items: end; margin-top: 24px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.search-form > div { display: grid; gap: 5px; }
.search-form label { color: #B6C0C9; font-size: 11px; }
.search-form input, .search-form select { width: 100%; min-width: 0; height: 41px; padding: 0 10px; color: var(--text); background: #11171C; border: 1px solid var(--line-strong); border-radius: 3px; }
.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 8px 17px; border: 1px solid transparent; border-radius: 3px; font-size: 13px; font-weight: 700; cursor: pointer; }
.button-primary { color: #17130F; background: var(--gold); }
.button-primary:hover { color: #17130F; background: #FFC16A; }
.button-outline { color: var(--gold); background: transparent; border-color: rgba(240,168,72,.5); }
.search-results-heading { margin-top: 30px; }
.search-results-heading h2 span { margin-left: 5px; color: var(--teal); font-size: 13px; }
.empty-state { display: grid; justify-items: center; padding: 65px 20px; margin-top: 25px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.empty-code { color: var(--amber); font-size: 60px; font-weight: 800; line-height: 1; letter-spacing: .04em; }
.empty-state h1, .empty-state h2 { margin: 13px 0 4px; font-size: 23px; }
.empty-state p { max-width: 540px; margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* 页脚 */
.site-footer { padding: 42px 0 0; background: var(--ink); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr 1.2fr; gap: 35px; padding-bottom: 30px; }
.footer-logo { color: var(--gold); font-size: 23px; font-weight: 800; letter-spacing: .05em; }
.footer-brand p, .footer-note p { max-width: 320px; margin: 8px 0 0; color: #7F8A95; font-size: 11px; line-height: 1.9; }
.footer-grid h2 { margin: 2px 0 10px; color: #D5DCE2; font-size: 13px; }
.footer-grid ul { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
.footer-grid li a { color: #89949F; font-size: 11px; }
.footer-grid li a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; padding-top: 14px; padding-bottom: 16px; color: #68737D; border-top: 1px solid var(--line); font-size: 10px; }
.footer-bottom a { color: #9AA4AE; }

/* 平板与移动端布局 */
@media (max-width: 1050px) {
    .header-inner { gap: 17px; }
    .primary-nav { gap: 13px; }
    .primary-nav a { font-size: 12px; }
    .hero { gap: 25px; }
    .media-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .collection-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .directory-columns { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .search-form { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (max-width: 760px) {
    .container { width: min(100% - 30px, var(--container)); }
    .header-inner { min-height: 66px; gap: 12px; }
    .brand img { width: 36px; height: 36px; }
    .brand strong { font-size: 18px; }
    .brand small { font-size: 9px; }
    .nav-toggle { display: block; margin-left: auto; }
    .primary-nav { position: absolute; top: 65px; left: 0; right: 0; display: none; padding: 9px 15px 15px; background: #0B0E11; border-bottom: 1px solid var(--line-strong); grid-template-columns: repeat(4,1fr); gap: 4px; }
    .primary-nav.is-open { display: grid; }
    .primary-nav a { padding: 9px 5px; text-align: center; border: 1px solid var(--line); border-radius: 3px; }
    .primary-nav a::after { display: none; }
    .header-search-link { padding: 6px 11px; font-size: 12px; }
    .hero { grid-template-columns: 1fr; gap: 23px; padding-top: 35px; padding-bottom: 30px; }
    .hero h1 { margin-top: 13px; font-size: 33px; }
    .hero h1 span { font-size: 21px; }
    .hero-lead { font-size: 13px; }
    .hero-index { padding: 17px; }
    .filter-strip { padding: 18px 15px; }
    .filter-group { grid-template-columns: 65px 1fr; gap: 8px; }
    .content-section { padding-top: 42px; }
    .section-heading { align-items: flex-start; gap: 10px; }
    .section-heading h2 { font-size: 21px; }
    .section-heading p { font-size: 12px; }
    .text-link { padding-top: 7px; font-size: 11px; }
    .media-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .media-card-body { padding: 9px; }
    .media-card h3 { font-size: 13px; }
    .card-summary { font-size: 10px; }
    .secondary-section { margin-top: 40px; padding: 34px 0; }
    .category-feature-grid { grid-template-columns: 1fr; }
    .category-feature { padding: 14px; }
    .collection-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .collection-card h3 { font-size: 14px; }
    .collection-card p { min-height: 72px; font-size: 10px; }
    .guide-band { margin-top: 40px; padding: 32px 0; }
    .guide-content { grid-template-columns: 1fr; gap: 22px; }
    .guide-content h2 { font-size: 21px; }
    .directory-columns { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .directory-columns > div { padding: 11px; }
    .directory-columns p { min-height: 80px; }
    .page-main { padding-top: 18px; padding-bottom: 50px; }
    .page-intro h1 { font-size: 30px; }
    .listing-grid { grid-template-columns: 1fr; gap: 11px; }
    .listing-grid .media-card { grid-template-columns: 118px 1fr; }
    .listing-grid .media-card-body { padding: 10px 12px; }
    .listing-grid .media-card h3 { font-size: 14px; }
    .listing-grid .card-summary { -webkit-line-clamp: 3; margin-bottom: 8px; }
    .collection-detail { grid-template-columns: 1fr; gap: 15px; padding: 12px; }
    .collection-detail-image, .collection-detail-image img { min-height: 170px; max-height: 220px; }
    .collection-detail-copy h2 { font-size: 21px; }
    .mini-media-list { grid-template-columns: 1fr; }
    .method-grid { grid-template-columns: 1fr; gap: 9px; }
    .detail-layout { grid-template-columns: 112px minmax(0,1fr); gap: 15px; }
    .detail-poster-wrap { padding: 5px; }
    .poster-caption { display: grid; gap: 2px; font-size: 9px; }
    .detail-copy h1 { font-size: 25px; }
    .detail-meta { gap: 5px; }
    .detail-meta span { padding: 2px 6px; font-size: 9px; }
    .detail-summary { margin: 11px 0; font-size: 13px; }
    .story-section { margin-top: 17px; }
    .story-section h2, .episode-section h2 { font-size: 15px; }
    .story-section p { font-size: 12px; }
    .play-panel { grid-column: 1 / -1; margin-left: -127px; padding: 12px; }
    .play-panel-icon { flex-basis: 31px; width: 31px; height: 31px; }
    .episode-section { grid-column: 1 / -1; margin-left: -127px; }
    .episode-list { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .search-form { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 13px; }
    .search-input-wrap { grid-column: 1 / -1; }
    .search-form .button { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 23px 18px; }
    .footer-brand, .footer-note { grid-column: 1 / -1; }
}
@media (max-width: 390px) {
    .container { width: calc(100% - 24px); }
    .hero h1 { font-size: 29px; }
    .hero h1 span { font-size: 18px; }
    .hero-search button { min-width: 90px; padding-inline: 10px; }
    .index-links { gap: 5px; }
    .index-links a { grid-template-columns: auto 1fr; }
    .index-links a small { display: none; }
    .collection-grid { grid-template-columns: 1fr 1fr; }
    .detail-layout { grid-template-columns: 95px minmax(0,1fr); gap: 11px; }
    .play-panel, .episode-section { margin-left: -106px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
