/* 麻花影视：原生 CSS3，暖色影院主题 */
:root {
    --brand: #C94A2F;
    --brand-strong: #A83A25;
    --accent: #E85D3F;
    --gold: #E7B56A;
    --ink: #25262A;
    --muted: #6F7178;
    --night: #17181C;
    --night-soft: #22242A;
    --paper: #F7F5F1;
    --paper-2: #EEEAE4;
    --white: #FFFFFF;
    --line: rgba(37, 38, 42, 0.12);
    --line-dark: rgba(255, 255, 255, 0.14);
    --shadow-sm: 0 8px 24px rgba(23, 24, 28, 0.08);
    --shadow-md: 0 18px 48px rgba(23, 24, 28, 0.14);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 30px;
    --max: 1240px;
    --header-h: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; line-height: 1.65; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
::selection { background: rgba(232, 93, 63, 0.22); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 999; left: 18px; top: 14px; padding: 10px 14px; border-radius: 8px; background: var(--white); color: var(--night); box-shadow: var(--shadow-sm); transform: translateY(-150%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 80; background: rgba(247, 245, 241, .93); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-shell { width: min(var(--max), calc(100% - 40px)); min-height: var(--header-h); margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-lockup img { width: 52px; height: 52px; object-fit: cover; border-radius: 14px; background: var(--night); }
.brand-lockup span { display: grid; line-height: 1.25; }
.brand-lockup strong { font-size: 20px; letter-spacing: .04em; }
.brand-lockup small { color: var(--muted); font-size: 11px; margin-top: 4px; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.primary-nav > a { padding: 10px 12px; border-radius: 999px; color: #4f5056; font-size: 14px; font-weight: 600; }
.primary-nav > a:hover, .primary-nav > a.is-active { background: var(--night); color: var(--white); }
.header-search { display: flex; align-items: center; margin-left: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.header-search input { width: 150px; border: 0; background: transparent; color: var(--ink); padding: 9px 4px 9px 14px; outline: 0; }
.header-search button { border: 0; background: transparent; color: var(--brand); padding: 9px 13px; font-weight: 700; }
.menu-button { display: none; width: 46px; height: 42px; margin-left: auto; border: 1px solid var(--line); background: var(--white); border-radius: 12px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-button span { width: 20px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

main { display: block; }
.eyebrow { margin: 0 0 10px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero-cinema { width: min(var(--max), calc(100% - 40px)); margin: 34px auto 0; min-height: 620px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); background: var(--night); color: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.hero-copy { padding: clamp(44px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; }
.hero-copy .eyebrow { color: var(--gold); }
.hero-copy h1 { margin: 0; font-size: clamp(38px, 5vw, 68px); line-height: 1.08; letter-spacing: -.04em; max-width: 820px; }
.hero-lead { margin: 26px 0 0; max-width: 720px; color: #d5d2ca; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 11px 18px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--accent); color: var(--white); }
.button.primary:hover { background: #f06a4f; }
.button.secondary { border-color: rgba(255, 255, 255, .28); color: var(--white); background: rgba(255,255,255,.05); }
.page-app .button.secondary, .page-desktop .button.secondary, .page-404 .button.secondary { border-color: var(--line); color: var(--ink); background: var(--white); }
.hero-facts { list-style: none; margin: 42px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.hero-facts li { background: var(--night); padding: 16px; display: grid; gap: 4px; }
.hero-facts strong { font-size: 14px; }
.hero-facts span { color: #aeadb3; font-size: 12px; }
.hero-art { margin: 0; position: relative; min-height: 100%; background: var(--night-soft); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 0%, rgba(23,24,28,.15) 40%, rgba(23,24,28,.05) 100%); pointer-events: none; }
.hero-art figcaption { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 28px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(23,24,28,.68); color: #e9e6de; font-size: 13px; backdrop-filter: blur(12px); }

.content-band, .catalog-section, .split-feature, .route-section, .watch-index, .episode-board, .anime-track, .guide-section, .path-section, .official-notes, .mobile-steps, .device-section, .app-choice, .desktop-flow, .keyboard-section, .desktop-links, .search-results, .search-empty { width: min(var(--max), calc(100% - 40px)); margin: 92px auto 0; }
.section-heading { display: grid; grid-template-columns: minmax(0, .9fr) minmax(300px, .7fr); gap: 60px; align-items: end; margin-bottom: 34px; }
.section-heading h2, .route-copy h2, .anime-copy h2, .device-copy h2, .keyboard-copy h2 { margin: 0; font-size: clamp(30px, 4vw, 50px); line-height: 1.12; letter-spacing: -.035em; }
.section-heading > p, .route-copy > p, .anime-copy > p, .device-copy > p, .keyboard-copy > p { margin: 0; color: var(--muted); }
.compact-heading { grid-template-columns: minmax(0, 1.1fr) minmax(280px, .8fr); }
.decision-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.decision-card { min-height: 210px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .2s ease, border-color .2s ease; }
.decision-card:hover { transform: translateY(-4px); border-color: rgba(201,74,47,.4); }
.decision-card span { color: var(--brand); font-size: 12px; font-weight: 800; }
.decision-card strong { margin-top: auto; font-size: 21px; line-height: 1.25; }
.decision-card p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.poster-grid { display: grid; gap: 18px; }
.poster-grid-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.poster-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.poster-card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--paper-2); }
.poster-body { padding: 20px; }
.meta-line { margin: 0 0 6px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .03em; }
.poster-body h3, .story-card h3, .rail-card h3, .mini-list h3, .episode-list h3, .anime-stack h3, .result-list h3 { margin: 0; font-size: 22px; line-height: 1.25; }
.poster-body > p:not(.meta-line), .story-card p, .rail-card p, .mini-list p, .episode-list p, .anime-stack p, .result-list p { color: var(--muted); }
.tag-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list li { padding: 5px 9px; border-radius: 999px; background: var(--paper-2); color: #56575e; font-size: 11px; font-weight: 700; }
.dark-section { width: 100%; max-width: none; padding: 90px max(20px, calc((100vw - var(--max)) / 2)); background: var(--night); color: var(--white); }
.dark-section .section-heading > p, .dark-section .rail-card p { color: #bdbbc0; }
.dark-section .eyebrow { color: var(--gold); }
.rail-list { border-top: 1px solid var(--line-dark); }
.rail-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line-dark); }
.rail-index { color: var(--gold); font-size: 13px; font-weight: 800; }
.rail-card h3 { font-size: clamp(23px, 3vw, 34px); }
.rail-card p { max-width: 850px; margin-bottom: 0; }
.focus-line { font-size: 13px; }
.focus-line strong { color: #f3f0e8; }
.section-cta { margin-top: 24px; }
.text-link { color: var(--brand); font-weight: 800; }
.dark-section .text-link { color: var(--gold); }
.split-feature { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr); gap: 58px; align-items: stretch; }
.feature-visual { min-height: 660px; border-radius: var(--radius-lg); overflow: hidden; background: var(--night); }
.feature-visual img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { align-self: center; }
.mini-list { margin-top: 32px; border-top: 1px solid var(--line); }
.mini-list article { padding: 20px 0; border-bottom: 1px solid var(--line); }
.mini-list article p { margin: 8px 0; }
.mini-list article span { color: var(--brand); font-size: 12px; font-weight: 700; }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.story-card { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 280px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.story-card > img { width: 100%; height: 100%; object-fit: cover; }
.story-card > div { padding: 24px; }
.short-band { padding: 34px; background: var(--paper-2); border-radius: var(--radius-lg); }
.short-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.short-grid article { padding: 18px; background: rgba(255,255,255,.76); border: 1px solid var(--line); border-radius: 14px; }
.short-grid h3 { margin: 0; font-size: 18px; }
.short-grid p { color: var(--muted); font-size: 13px; }
.short-grid span { color: var(--brand); font-size: 11px; font-weight: 700; }
.route-section { margin-bottom: 92px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 54px; align-items: start; }
.route-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.route-links a { display: grid; gap: 6px; padding: 22px 14px 22px 0; border-bottom: 1px solid var(--line); }
.route-links a:nth-child(odd) { margin-right: 18px; }
.route-links strong { font-size: 18px; }
.route-links span { color: var(--muted); font-size: 13px; }

.page-mast { width: min(var(--max), calc(100% - 40px)); margin: 34px auto 0; display: grid; grid-template-columns: 1fr .78fr; align-items: stretch; background: #202126; border-radius: var(--radius-lg); overflow: hidden; color: var(--white); }
.page-mast > div { padding: clamp(46px, 6vw, 86px); align-self: center; }
.page-mast h1, .official-copy h1, .app-hero h1, .desktop-copy h1, .search-hero h1, .not-found h1 { margin: 0; font-size: clamp(38px, 5vw, 66px); line-height: 1.07; letter-spacing: -.04em; }
.page-mast > div > p:last-child { color: #c6c3c0; font-size: 17px; }
.page-mast img { width: 100%; height: 100%; object-fit: cover; }
.watch-modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.watch-modes article { padding: 24px; border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--line); }
.watch-modes article > span, .flow-grid article > span { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--night); color: var(--gold); font-size: 11px; font-weight: 900; }
.watch-modes h3, .flow-grid h3, .guide-grid h3, .choice-grid h3, .note-columns h3 { margin: 18px 0 8px; font-size: 20px; }
.watch-modes p, .flow-grid p, .guide-grid p, .choice-grid p, .note-columns p { margin: 0; color: var(--muted); font-size: 14px; }
.board-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 20px; }
.board-head h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); }
.board-head > a { color: var(--brand); font-size: 13px; font-weight: 800; }
.episode-list { border-top: 1px solid var(--line); }
.episode-list article { display: grid; grid-template-columns: 24px 1.2fr .8fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.episode-marker { width: 10px; height: 10px; margin-top: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(232,93,63,.12); }
.episode-main p { margin: 8px 0 0; }
.episode-focus { display: flex; flex-direction: column; align-items: flex-start; }
.episode-focus > span { color: var(--muted); font-size: 11px; }
.episode-focus > strong { margin: 4px 0 6px; font-size: 14px; }
.episode-focus .tag-list { margin-top: 8px; }
.anime-track { padding: clamp(34px, 5vw, 66px); background: var(--night); color: var(--white); border-radius: var(--radius-lg); display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; }
.anime-copy .eyebrow { color: var(--gold); }
.anime-copy > p { color: #bdbbc0; }
.anime-stack { border-top: 1px solid var(--line-dark); }
.anime-stack article { padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.anime-stack p { margin: 7px 0; color: #bbb9be; }
.anime-stack span { color: var(--gold); font-size: 12px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.guide-grid article { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.guide-grid h3 { margin-top: 0; }
.next-route { width: min(var(--max), calc(100% - 40px)); margin: 92px auto; padding: 32px 0; display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.next-route h2 { margin: 0; font-size: clamp(25px, 3vw, 38px); }
.next-route > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; align-content: center; justify-content: flex-end; }
.next-route a { padding: 10px 13px; border-radius: 999px; background: var(--paper-2); font-weight: 700; font-size: 13px; }

.official-lead { width: min(var(--max), calc(100% - 40px)); margin: 34px auto 0; display: grid; grid-template-columns: 1.05fr .95fr; min-height: 590px; border-radius: var(--radius-lg); overflow: hidden; background: var(--night); color: var(--white); }
.official-copy { padding: clamp(46px, 6vw, 82px); align-self: center; }
.official-copy > p:not(.eyebrow) { color: #c5c2bd; font-size: 17px; }
.official-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.official-panel { position: relative; min-height: 100%; background: var(--night-soft); }
.official-panel img { width: 100%; height: 100%; object-fit: cover; opacity: .66; }
.official-panel dl { position: absolute; left: 26px; right: 26px; bottom: 26px; margin: 0; padding: 18px; border-radius: 16px; background: rgba(23,24,28,.82); border: 1px solid var(--line-dark); backdrop-filter: blur(10px); }
.official-panel dl div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line-dark); }
.official-panel dl div:last-child { border-bottom: 0; }
.official-panel dt { color: #aaa8ad; font-size: 12px; }
.official-panel dd { margin: 0; font-size: 13px; font-weight: 700; }
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.path-grid a { min-height: 200px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); display: flex; flex-direction: column; }
.path-grid span { color: var(--brand); font-size: 12px; font-weight: 800; }
.path-grid strong { margin-top: auto; font-size: 21px; }
.path-grid p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.official-notes { margin-bottom: 92px; padding: 42px; background: var(--paper-2); border-radius: var(--radius-lg); }
.official-notes > div:first-child { max-width: 780px; }
.official-notes h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); }
.note-columns { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.note-columns article { padding-top: 18px; border-top: 2px solid var(--ink); }
.note-columns h3 { margin-top: 0; }

.app-hero { width: min(var(--max), calc(100% - 40px)); margin: 34px auto 0; display: grid; grid-template-columns: 1.05fr .95fr; min-height: 590px; background: linear-gradient(145deg, #f4efe6, #ece3d8); border-radius: var(--radius-lg); overflow: hidden; }
.app-hero > div { padding: clamp(46px, 6vw, 84px); align-self: center; }
.app-hero > div > p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.app-hero figure { margin: 0; position: relative; background: #d9c8b9; }
.app-hero figure img { width: 100%; height: 100%; object-fit: cover; }
.app-hero figcaption { position: absolute; left: 24px; right: 24px; bottom: 24px; background: rgba(255,255,255,.9); border: 1px solid var(--line); padding: 13px 15px; border-radius: 14px; font-size: 12px; color: var(--muted); }
.step-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.step-list li { display: grid; grid-template-columns: 60px 1fr; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.step-list li > span { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: var(--white); border-radius: 50%; font-weight: 800; }
.step-list h3 { margin: 0 0 6px; font-size: 20px; }
.step-list p { margin: 0; color: var(--muted); }
.device-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.device-image { border-radius: var(--radius-lg); overflow: hidden; background: var(--night); }
.device-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.check-list { margin: 24px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 900; }
.app-choice { margin-bottom: 92px; padding: 42px; background: var(--night); color: var(--white); border-radius: var(--radius-lg); }
.app-choice h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); }
.app-choice .eyebrow { color: var(--gold); }
.choice-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.choice-grid article { padding: 22px; border: 1px solid var(--line-dark); border-radius: var(--radius-md); background: rgba(255,255,255,.04); }
.choice-grid h3 { margin-top: 0; }
.choice-grid p { color: #bbb9bd; }

.desktop-hero { width: min(var(--max), calc(100% - 40px)); margin: 34px auto 0; padding: 50px 50px 0; min-height: 620px; background: var(--night); color: var(--white); border-radius: var(--radius-lg); display: grid; grid-template-columns: 1.15fr .85fr; gap: 42px; overflow: hidden; }
.desktop-screen { align-self: end; border: 10px solid #2d2e34; border-bottom: 0; border-radius: 22px 22px 0 0; overflow: hidden; background: #111; box-shadow: 0 -24px 70px rgba(0,0,0,.24); }
.desktop-screen img { width: 100%; height: 100%; object-fit: cover; }
.desktop-copy { align-self: center; padding-bottom: 50px; }
.desktop-copy .eyebrow { color: var(--gold); }
.desktop-copy > p:not(.eyebrow) { color: #c4c1bc; }
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.flow-grid article { min-height: 250px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.keyboard-section { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.keyboard-section > img { width: 100%; border-radius: var(--radius-lg); }
.key-list { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); }
.key-list li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
kbd { display: inline-block; min-width: 28px; padding: 4px 7px; margin-right: 3px; border: 1px solid #bcb8b1; border-bottom-width: 2px; border-radius: 6px; background: var(--white); font-size: 12px; text-align: center; }
.key-list span { color: var(--muted); }
.desktop-links { margin-bottom: 92px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.desktop-links a { padding: 22px; background: var(--paper-2); border-radius: var(--radius-md); display: grid; gap: 5px; }
.desktop-links strong { font-size: 18px; }
.desktop-links span { color: var(--muted); font-size: 13px; }

.search-hero { width: min(920px, calc(100% - 40px)); margin: 72px auto 0; text-align: center; }
.search-hero h1 { font-size: clamp(38px, 6vw, 70px); }
.search-form { margin-top: 34px; text-align: left; }
.search-form > label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; }
.search-form > div { display: flex; padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow-sm); }
.search-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 10px 12px; font-size: 17px; }
.search-form button { flex: 0 0 auto; border: 0; border-radius: 12px; background: var(--accent); color: var(--white); padding: 10px 20px; font-weight: 800; }
.search-empty { max-width: 920px; margin-bottom: 92px; padding: 34px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); text-align: center; }
.search-empty h2 { margin-top: 0; font-size: 28px; }
.search-empty p { color: var(--muted); }
.search-suggestions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 20px 0; }
.search-suggestions a { padding: 8px 12px; background: var(--paper-2); border-radius: 999px; font-weight: 700; font-size: 13px; }
.search-results { margin-bottom: 92px; }
.result-list { border-top: 1px solid var(--line); }
.result-list article { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.result-list p { margin: 7px 0 0; max-width: 860px; }
.result-list h3 a:hover { color: var(--brand); }
.result-action { display: inline-flex; padding: 9px 13px; border-radius: 999px; background: var(--paper-2); font-size: 12px; font-weight: 800; }
.not-found { width: min(880px, calc(100% - 40px)); margin: 90px auto; padding: 56px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.not-found > p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.not-found > div { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-top: 26px; }

.site-footer { margin-top: 0; padding: 64px 0 24px; background: var(--night); color: var(--white); }
.footer-grid { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 1.4fr .7fr .7fr; gap: 60px; }
.footer-brand { font-size: 24px; }
.footer-grid p { color: #aaa8ad; max-width: 520px; }
.footer-grid h2 { margin: 0 0 14px; font-size: 13px; color: var(--gold); letter-spacing: .08em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: #cfccd0; font-size: 13px; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { width: min(var(--max), calc(100% - 40px)); margin: 48px auto 0; padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; color: #89878d; font-size: 12px; }

@media (max-width: 1080px) {
    .header-shell { width: min(100% - 28px, var(--max)); }
    .primary-nav { position: fixed; z-index: 90; left: 14px; right: 14px; top: calc(var(--header-h) - 4px); display: grid; gap: 6px; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md); transform: translateY(-12px); opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
    .primary-nav[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible; }
    .primary-nav > a { border-radius: 10px; }
    .header-search { margin: 6px 0 0; border-radius: 12px; }
    .header-search input { width: 100%; flex: 1; }
    .menu-button { display: inline-flex; }
    .hero-cinema, .official-lead, .app-hero { grid-template-columns: 1fr; }
    .hero-art, .official-panel, .app-hero figure { min-height: 430px; }
    .decision-grid, .watch-modes, .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .poster-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .story-card { grid-template-columns: 180px minmax(0, 1fr); }
    .short-grid { grid-template-columns: repeat(2, 1fr); }
    .desktop-hero { grid-template-columns: 1fr; padding: 50px 50px 0; }
    .desktop-copy { order: -1; }
    .path-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    :root { --header-h: 72px; }
    .brand-lockup img { width: 44px; height: 44px; }
    .brand-lockup small { display: none; }
    .hero-cinema, .page-mast, .official-lead, .app-hero, .desktop-hero { width: calc(100% - 24px); margin-top: 18px; border-radius: 22px; }
    .content-band, .catalog-section, .split-feature, .route-section, .watch-index, .episode-board, .anime-track, .guide-section, .path-section, .official-notes, .mobile-steps, .device-section, .app-choice, .desktop-flow, .keyboard-section, .desktop-links, .search-results, .search-empty { width: calc(100% - 24px); margin-top: 66px; }
    .section-heading, .compact-heading { grid-template-columns: 1fr; gap: 14px; align-items: start; }
    .section-heading { margin-bottom: 24px; }
    .split-feature, .route-section, .anime-track, .device-section, .keyboard-section { grid-template-columns: 1fr; }
    .feature-visual { min-height: 420px; }
    .story-grid { grid-template-columns: 1fr; }
    .short-band, .official-notes, .app-choice { padding: 26px; }
    .route-links { grid-template-columns: 1fr; }
    .route-links a:nth-child(odd) { margin-right: 0; }
    .page-mast { grid-template-columns: 1fr; }
    .page-mast img { max-height: 430px; }
    .episode-list article { grid-template-columns: 20px 1fr; }
    .episode-focus { grid-column: 2; }
    .next-route { width: calc(100% - 24px); margin: 66px auto; flex-direction: column; }
    .next-route > div:last-child { justify-content: flex-start; }
    .note-columns, .choice-grid, .desktop-links { grid-template-columns: 1fr; }
    .desktop-hero { padding: 36px 28px 0; }
    .desktop-copy { padding-bottom: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .header-shell { width: calc(100% - 20px); }
    .brand-lockup strong { font-size: 18px; }
    .hero-copy, .page-mast > div, .official-copy, .app-hero > div { padding: 34px 24px; }
    .hero-copy h1, .page-mast h1, .official-copy h1, .app-hero h1, .desktop-copy h1, .search-hero h1, .not-found h1 { font-size: clamp(34px, 11vw, 52px); }
    .hero-lead, .page-mast > div > p:last-child, .official-copy > p:not(.eyebrow), .app-hero > div > p:not(.eyebrow) { font-size: 16px; }
    .hero-facts { grid-template-columns: 1fr; }
    .hero-art, .official-panel, .app-hero figure { min-height: 320px; }
    .decision-grid, .watch-modes, .poster-grid-wide, .short-grid, .path-grid, .flow-grid { grid-template-columns: 1fr; }
    .poster-card > img { aspect-ratio: 4 / 3; }
    .story-card { grid-template-columns: 1fr; }
    .story-card > img { aspect-ratio: 16 / 9; }
    .short-band, .official-notes, .app-choice { padding: 22px; border-radius: 20px; }
    .rail-card { grid-template-columns: 42px 1fr; gap: 12px; }
    .anime-track { padding: 28px 22px; border-radius: 20px; }
    .guide-grid { grid-template-columns: 1fr; }
    .official-panel dl { left: 14px; right: 14px; bottom: 14px; }
    .official-panel dl div { grid-template-columns: 78px 1fr; }
    .desktop-hero { padding: 30px 20px 0; }
    .key-list li { grid-template-columns: 1fr; gap: 7px; }
    .search-hero { width: calc(100% - 24px); margin-top: 52px; text-align: left; }
    .search-form > div { border-radius: 14px; }
    .search-form button { padding: 10px 14px; }
    .result-list article { grid-template-columns: 1fr; gap: 12px; }
    .result-action { justify-self: start; }
    .not-found { padding: 36px 22px; }
    .footer-grid { grid-template-columns: 1fr; width: calc(100% - 24px); }
    .footer-grid > div:first-child { grid-column: auto; }
    .footer-bottom { width: calc(100% - 24px); gap: 16px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
