/* 麻花影视 - responsive native CSS */
:root {
    --brand: #C94A2F;
    --brand-bright: #E85D3F;
    --gold: #E7B56A;
    --ink: #25262A;
    --muted: #6F7178;
    --dark: #17181C;
    --paper: #F7F5F1;
    --soft: #EEEAE4;
    --white: #FFFFFF;
    --line: rgba(37, 38, 42, .12);
    --line-light: rgba(255, 255, 255, .14);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --shadow: 0 18px 55px rgba(30, 24, 20, .10);
    --shell: 1180px;
    --header-h: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
::selection { background: rgba(232, 93, 63, .22); }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 20px; top: -60px; z-index: 9999; background: var(--white); color: var(--dark); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 1000; min-height: var(--header-h); background: rgba(23, 24, 28, .96); color: var(--white); border-bottom: 1px solid var(--line-light); backdrop-filter: blur(16px); }
.site-header__inner { min-height: var(--header-h); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; }
.brand__text { display: grid; line-height: 1.2; gap: 4px; }
.brand__text strong { font-size: 18px; letter-spacing: .04em; }
.brand__text small { color: rgba(255,255,255,.60); font-size: 11px; letter-spacing: .02em; }
.primary-nav { display: flex; justify-content: center; align-items: center; gap: 4px; }
.primary-nav a { color: rgba(255,255,255,.75); padding: 10px 12px; border-radius: 8px; font-size: 14px; transition: background .2s ease, color .2s ease; }
.primary-nav a:hover, .primary-nav a.is-active { color: var(--white); background: rgba(255,255,255,.08); }
.header-search { display: flex; align-items: center; width: 250px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; overflow: hidden; }
.header-search input { width: 100%; min-width: 0; color: var(--white); background: transparent; border: 0; padding: 9px 4px 9px 14px; outline: 0; font-size: 13px; }
.header-search input::placeholder { color: rgba(255,255,255,.46); }
.header-search button { border: 0; color: var(--gold); background: transparent; padding: 9px 13px 9px 8px; font-size: 13px; }
.menu-toggle { display: none; border: 0; color: var(--white); background: transparent; align-items: center; gap: 10px; padding: 8px; }
.menu-toggle__label { font-size: 13px; }
.menu-toggle__bars { display: grid; gap: 4px; }
.menu-toggle__bars i { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 1px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero { position: relative; overflow: hidden; background: var(--dark); color: var(--white); }
.hero::before { content: ""; position: absolute; inset: -30% 52% 35% -10%; background: radial-gradient(circle, rgba(201,74,47,.28), transparent 64%); pointer-events: none; }
.hero__grid { min-height: 620px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; padding-block: 72px; position: relative; }
.hero__copy { max-width: 650px; }
.hero h1 { margin: 0; max-width: 14ch; font-size: clamp(42px, 5.3vw, 72px); line-height: 1.06; letter-spacing: -.045em; }
.hero__lead { max-width: 680px; margin: 24px 0 0; color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.85; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 18px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; line-height: 1.2; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--brand-bright); color: var(--white); box-shadow: 0 10px 24px rgba(232,93,63,.24); }
.button--primary:hover { background: #f06a4e; }
.button--ghost { color: var(--white); border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.05); }
.button--ghost:hover { background: rgba(255,255,255,.10); }
.button--dark { background: var(--dark); color: var(--white); }
.hero__facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 44px 0 0; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.09); }
.hero__facts div { padding: 14px; background: rgba(23,24,28,.66); }
.hero__facts dt { font-weight: 800; font-size: 14px; }
.hero__facts dd { margin: 4px 0 0; color: rgba(255,255,255,.55); font-size: 11px; line-height: 1.5; }
.hero__visual { position: relative; align-self: stretch; min-height: 460px; display: flex; align-items: center; }
.hero__visual > img { width: 100%; height: 100%; max-height: 540px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.hero__note { position: absolute; left: -28px; bottom: 42px; width: min(300px, 72%); padding: 16px 18px; border-radius: 14px; background: rgba(247,245,241,.96); color: var(--ink); box-shadow: var(--shadow); }
.hero__note span { display: block; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.hero__note strong { display: block; margin-top: 4px; font-size: 15px; line-height: 1.45; }

.eyebrow { margin: 0 0 9px; color: var(--brand); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow--light { color: var(--gold); }
.lead { font-size: 18px; line-height: 1.85; color: #424348; }
.section { padding: 84px 0; }
.section--dense { padding-top: 74px; }
.section--warm { background: var(--soft); }
.section--dark { background: var(--dark); color: var(--white); }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading h2, .watch-split h2, .callout-row h2, .desktop-layout h2, .download-panel h2, .direct-grid h2, .trust-layout h2, .article-main h2 { margin: 0; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.18; letter-spacing: -.03em; }
.section-heading > p:last-child { color: var(--muted); margin-bottom: 0; }
.section-heading--split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading--split > div { max-width: 720px; }
.text-link { color: var(--brand); font-weight: 750; border-bottom: 1px solid rgba(201,74,47,.25); }
.text-link:hover { border-bottom-color: currentColor; }

.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.type-tile { position: relative; overflow: hidden; min-height: 310px; border-radius: 18px; background: var(--dark); color: var(--white); box-shadow: 0 14px 35px rgba(30,24,20,.08); }
.type-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.type-tile:hover img { transform: scale(1.04); }
.type-tile__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08) 15%, rgba(0,0,0,.82) 100%); }
.type-tile__body { position: absolute; inset: auto 20px 20px; display: grid; gap: 6px; }
.type-tile__body strong { font-size: 24px; }
.type-tile__body small { color: rgba(255,255,255,.66); font-size: 12px; line-height: 1.65; }

.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.topic-grid--compact { grid-template-columns: repeat(3, 1fr); }
.topic-grid--category { margin-top: 28px; }
.topic-card { min-width: 0; border-radius: var(--radius-md); background: var(--white); overflow: hidden; box-shadow: 0 12px 38px rgba(31,26,22,.07); border: 1px solid rgba(37,38,42,.05); }
.topic-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #ddd; }
.topic-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.topic-card:hover .topic-card__media img { transform: scale(1.035); }
.topic-card__type { position: absolute; top: 14px; left: 14px; background: rgba(23,24,28,.86); color: var(--white); padding: 6px 9px; border-radius: 7px; font-size: 11px; font-weight: 700; backdrop-filter: blur(8px); }
.topic-card__body { padding: 22px; }
.topic-card__body h3 { margin: 0; font-size: 21px; line-height: 1.35; }
.topic-card__body h3 a:hover { color: var(--brand); }
.topic-card__body > p:not(.eyebrow) { color: var(--muted); margin: 11px 0 0; font-size: 14px; }
.topic-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.topic-card__meta span, .tag-row span { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 9px; border-radius: 999px; background: var(--soft); color: #5b5c61; font-size: 11px; }
.topic-card--compact .topic-card__body { padding: 18px; }
.topic-card--compact .topic-card__body h3 { font-size: 18px; }
.topic-card--compact .topic-card__body > p:not(.eyebrow) { font-size: 13px; }

.watch-split { display: grid; grid-template-columns: .82fr 1.18fr; gap: 64px; align-items: center; }
.watch-split__media img { width: 100%; min-height: 560px; max-height: 680px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.watch-split__content .lead { max-width: 700px; }
.mini-list { display: grid; gap: 0; margin: 28px 0 30px; border-top: 1px solid var(--line); }
.mini-list article { padding: 20px 0; border-bottom: 1px solid var(--line); }
.mini-list h3 { margin: 0 0 5px; font-size: 17px; }
.mini-list p { color: var(--muted); margin: 0 0 8px; font-size: 14px; }
.official-strip { min-height: 260px; display: flex; justify-content: space-between; gap: 44px; align-items: center; }
.official-strip > div:first-child { max-width: 760px; }
.official-strip h2 { margin: 0; font-size: clamp(30px, 4vw, 50px); }
.official-strip p:not(.eyebrow) { color: rgba(255,255,255,.67); margin-bottom: 0; }
.official-strip__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: end; }

.page-hero { background: var(--dark); color: var(--white); overflow: hidden; }
.page-hero__grid { min-height: 410px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; padding-block: 58px; }
.page-hero h1, .topic-hero h1, .search-hero h1 { margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.08; letter-spacing: -.04em; }
.page-hero p:not(.eyebrow) { color: rgba(255,255,255,.68); font-size: 17px; max-width: 720px; }
.page-hero__grid > img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 24px; }
.page-hero--catalog { background: linear-gradient(125deg, #17181C 0%, #242124 70%, #3A211C 100%); }
.page-hero--watch { background: linear-gradient(120deg, #17181C 0%, #201B1B 70%, #43261F 100%); }
.page-hero--official { background: linear-gradient(135deg, #17181C 0%, #201D1B 65%, #503029 100%); }
.page-hero--app { background: linear-gradient(130deg, #17181C 0%, #211D1C 62%, #563024 100%); }
.category-jump { position: sticky; top: var(--header-h); z-index: 30; background: rgba(247,245,241,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.category-jump__inner { display: flex; overflow-x: auto; scrollbar-width: thin; }
.category-jump a { min-width: 120px; text-align: center; padding: 14px 20px; font-weight: 750; font-size: 14px; border-right: 1px solid var(--line); }
.category-jump a:hover { color: var(--brand); background: var(--white); }
.category-intro { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: center; }
.category-intro__copy { max-width: 720px; }
.category-intro h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); }
.category-intro p:not(.eyebrow) { color: var(--muted); }
.category-intro img { width: 100%; height: 220px; object-fit: cover; border-radius: 18px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-row--dark span { color: rgba(255,255,255,.72); background: rgba(255,255,255,.09); }
.empty-state { padding: 30px; margin-top: 30px; border-radius: 16px; background: var(--white); }
.empty-state h3 { margin-top: 0; }
.callout-row { min-height: 230px; display: flex; align-items: center; justify-content: space-between; gap: 44px; }
.callout-row > div:first-child { max-width: 780px; }
.callout-row p:not(.eyebrow) { color: rgba(255,255,255,.66); }

.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.guide-card { position: relative; padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); min-height: 250px; }
.guide-card__dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); margin-bottom: 36px; box-shadow: 0 0 0 7px rgba(201,74,47,.10); }
.guide-card h3 { margin: 0 0 9px; font-size: 19px; }
.guide-card p { color: var(--muted); font-size: 13px; }
.session-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.session-layout__sticky { align-self: start; position: sticky; top: calc(var(--header-h) + 36px); }
.session-layout__sticky h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.2; }
.session-layout__sticky p:not(.eyebrow) { color: var(--muted); }
.session-steps { border-top: 1px solid var(--line); }
.session-steps article { display: grid; grid-template-columns: 54px 180px 1fr; gap: 22px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); }
.session-steps span { color: var(--brand); font-weight: 900; font-size: 12px; }
.session-steps h3 { margin: 0; font-size: 17px; }
.session-steps p { margin: 0; color: var(--muted); font-size: 14px; }
.inline-search { display: flex; min-width: min(100%, 420px); gap: 10px; }
.inline-search input { min-width: 0; flex: 1; border: 1px solid rgba(255,255,255,.17); background: rgba(255,255,255,.07); color: var(--white); border-radius: 10px; padding: 11px 14px; }
.inline-search input::placeholder { color: rgba(255,255,255,.4); }

.official-hero { min-height: 480px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-block: 58px; }
.official-hero > img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 24px; }
.domain-pill { display: inline-flex; align-items: center; margin-top: 12px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); border-radius: 9px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
.domain-pill span { color: rgba(255,255,255,.45); }
.direct-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 72px; align-items: start; }
.direct-grid__lead { position: sticky; top: calc(var(--header-h) + 32px); }
.direct-grid__lead p:not(.eyebrow) { color: var(--muted); }
.direct-links { border-top: 1px solid var(--line); }
.direct-links > a { display: grid; grid-template-columns: 50px 1fr auto; gap: 20px; align-items: center; padding: 21px 2px; border-bottom: 1px solid var(--line); }
.direct-links > a:hover strong, .direct-links > a:hover b { color: var(--brand); }
.direct-links span { color: var(--brand); font-weight: 900; font-size: 12px; }
.direct-links strong { display: block; font-size: 17px; }
.direct-links small { display: block; color: var(--muted); margin-top: 3px; }
.direct-links b { font-size: 20px; }
.trust-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 58px; align-items: center; }
.trust-layout__image img { width: 100%; min-height: 420px; object-fit: cover; border-radius: 24px; }
.check-list { list-style: none; padding: 0; margin: 25px 0 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding: 15px 16px 15px 44px; border-radius: 12px; background: rgba(255,255,255,.72); border: 1px solid rgba(37,38,42,.06); }
.check-list li::before { content: "✓"; position: absolute; left: 16px; top: 14px; color: var(--brand); font-weight: 900; }

.app-hero { min-height: 530px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding-block: 58px; }
.app-hero__visual { position: relative; min-height: 390px; }
.app-hero__visual > img:first-child { width: 88%; height: 360px; object-fit: cover; border-radius: 24px; }
.app-hero__phone { position: absolute; right: 0; bottom: -24px; width: 36%; height: 320px; object-fit: cover; border: 8px solid var(--dark); border-radius: 24px; box-shadow: var(--shadow); }
.device-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.device-card { min-height: 260px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.device-card > span { color: var(--brand); font-weight: 900; font-size: 12px; }
.device-card h3 { margin: 42px 0 10px; font-size: 18px; }
.device-card p { margin: 0; color: var(--muted); font-size: 13px; }
.desktop-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 58px; align-items: center; }
.desktop-layout > img { width: 100%; min-height: 430px; object-fit: cover; border-radius: 24px; }
.desktop-points { display: grid; gap: 10px; margin-top: 26px; }
.desktop-points article { padding: 16px 0; border-top: 1px solid var(--line); }
.desktop-points h3 { margin: 0 0 3px; font-size: 16px; }
.desktop-points p { margin: 0; color: var(--muted); font-size: 13px; }
.download-panel { display: grid; grid-template-columns: 1fr .8fr; gap: 60px; align-items: center; padding: 42px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.download-panel > div:first-child p:not(.eyebrow) { color: var(--muted); }
.download-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.download-checks span { display: flex; min-height: 76px; align-items: center; justify-content: center; text-align: center; background: var(--soft); border-radius: 12px; font-weight: 750; font-size: 13px; }

.topic-hero { background: var(--dark); color: var(--white); }
.topic-hero__grid { min-height: 500px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 55px; align-items: center; padding-block: 52px; }
.topic-hero__grid > img { width: 100%; max-height: 410px; object-fit: cover; border-radius: 24px; }
.topic-hero__lead { max-width: 700px; color: rgba(255,255,255,.68); font-size: 17px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 30px; color: rgba(255,255,255,.54); font-size: 12px; }
.breadcrumbs a:hover { color: var(--white); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .55fr); gap: 58px; align-items: start; }
.article-main .lead { max-width: 850px; }
.point-list { margin-top: 34px; border-top: 1px solid var(--line); }
.point-list__item { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.point-list__item span { color: var(--brand); font-weight: 900; font-size: 12px; }
.point-list__item p { margin: 0; }
.article-aside { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 30px); }
.aside-card { padding: 25px; background: var(--soft); border-radius: 18px; }
.aside-card h2 { margin: 0; font-size: 21px; }
.aside-card p:last-child { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.aside-card--dark { background: var(--dark); color: var(--white); }
.aside-card--dark p:last-child { color: rgba(255,255,255,.65); }

.search-hero { background: var(--dark); color: var(--white); }
.search-hero__inner { min-height: 340px; display: flex; flex-direction: column; justify-content: center; padding-block: 50px; }
.search-form { max-width: 760px; margin-top: 28px; }
.search-form label { display: block; margin-bottom: 8px; color: rgba(255,255,255,.64); font-size: 13px; }
.search-form__row { display: flex; gap: 10px; }
.search-form input { flex: 1; min-width: 0; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: var(--white); border-radius: 10px; padding: 12px 15px; }
.search-results { min-height: 420px; }
.search-empty { max-width: 760px; padding: 30px 0; }
.search-empty h2 { margin: 0; font-size: 32px; }
.search-empty > p:not(.eyebrow) { color: var(--muted); }
.quick-searches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.quick-searches a { padding: 9px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 13px; }
.quick-searches a:hover { color: var(--brand); border-color: rgba(201,74,47,.4); }
.result-list { border-top: 1px solid var(--line); }
.result-item { display: grid; grid-template-columns: 82px 1fr auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.result-item__label { color: var(--brand); font-size: 11px; font-weight: 800; }
.result-item h3 { margin: 0; font-size: 18px; }
.result-item p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.result-item b { font-size: 19px; }
.result-item:hover h3, .result-item:hover b { color: var(--brand); }

.not-found { min-height: 72vh; display: flex; align-items: center; background: var(--soft); }
.not-found__grid { display: grid; grid-template-columns: 1fr .8fr; gap: 50px; align-items: center; padding-block: 70px; }
.not-found__code { margin: 0; color: var(--brand); font-size: 84px; line-height: 1; font-weight: 900; letter-spacing: -.06em; }
.not-found h1 { margin: 12px 0; font-size: 42px; }
.not-found p:not(.not-found__code) { color: var(--muted); max-width: 560px; }
.not-found img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 22px; }

.site-footer { background: #111216; color: var(--white); border-top: 1px solid rgba(255,255,255,.06); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 60px; padding-block: 56px 42px; }
.brand--footer { margin-bottom: 16px; }
.site-footer__intro { max-width: 500px; color: rgba(255,255,255,.50); font-size: 13px; }
.footer-title { margin: 0 0 15px; font-size: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-links a { color: rgba(255,255,255,.57); font-size: 13px; }
.footer-links a:hover { color: var(--gold); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.38); font-size: 12px; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a:hover { color: var(--white); }

@media (max-width: 1080px) {
    :root { --header-h: 70px; }
    .site-header__inner { grid-template-columns: auto auto 1fr; }
    .menu-toggle { display: inline-flex; justify-self: end; order: 3; }
    .header-search { justify-self: end; width: 220px; }
    .primary-nav { position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 998; display: grid; justify-content: stretch; gap: 0; padding: 12px 20px 20px; background: #17181C; border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 24px 40px rgba(0,0,0,.32); transform: translateY(-125%); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .25s ease, visibility .25s ease; }
    .primary-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
    .primary-nav a { padding: 13px 8px; border-bottom: 1px solid rgba(255,255,255,.07); border-radius: 0; }
    .hero__grid { min-height: 560px; grid-template-columns: 1fr .82fr; gap: 36px; }
    .hero__facts { grid-template-columns: 1fr 1fr; }
    .type-grid { grid-template-columns: 1fr 1fr; }
    .type-tile { min-height: 280px; }
    .topic-grid { grid-template-columns: 1fr 1fr; }
    .guide-grid, .device-grid { grid-template-columns: 1fr 1fr; }
    .session-layout, .direct-grid { grid-template-columns: 1fr; gap: 38px; }
    .session-layout__sticky, .direct-grid__lead { position: static; }
    .desktop-layout, .trust-layout { gap: 38px; }
}

@media (max-width: 820px) {
    .shell { width: min(calc(100% - 28px), var(--shell)); }
    .site-header__inner { grid-template-columns: auto 1fr auto; gap: 12px; }
    .header-search { display: none; }
    .brand__text small { display: none; }
    .hero__grid, .page-hero__grid, .official-hero, .app-hero, .topic-hero__grid { grid-template-columns: 1fr; min-height: auto; padding-block: 50px; }
    .hero__copy { max-width: none; }
    .hero h1 { max-width: 16ch; }
    .hero__visual { min-height: 340px; }
    .hero__visual > img { max-height: 430px; }
    .hero__note { left: 14px; bottom: 18px; }
    .section { padding: 62px 0; }
    .section-heading--split { align-items: start; flex-direction: column; gap: 12px; }
    .watch-split { grid-template-columns: 1fr; gap: 36px; }
    .watch-split__media img { min-height: 380px; max-height: 520px; }
    .official-strip, .callout-row { min-height: auto; align-items: start; flex-direction: column; }
    .official-strip__actions { justify-content: start; }
    .category-intro { grid-template-columns: 1fr; gap: 22px; }
    .category-intro img { height: 260px; }
    .session-steps article { grid-template-columns: 44px 1fr; }
    .session-steps article p { grid-column: 2; }
    .desktop-layout, .trust-layout, .download-panel, .article-layout, .not-found__grid { grid-template-columns: 1fr; }
    .article-aside { position: static; grid-template-columns: 1fr 1fr; }
    .app-hero__visual { min-height: 350px; }
    .site-footer__grid { grid-template-columns: 1.4fr 1fr; }
    .site-footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    body { font-size: 15px; }
    .brand img { width: 38px; height: 38px; }
    .brand__text strong { font-size: 16px; }
    .hero__grid { padding-block: 42px; }
    .hero h1, .page-hero h1, .topic-hero h1, .search-hero h1 { font-size: 38px; }
    .hero__lead, .page-hero p:not(.eyebrow), .topic-hero__lead { font-size: 15px; }
    .hero__facts { margin-top: 30px; }
    .type-grid, .topic-grid, .topic-grid--compact, .guide-grid, .device-grid { grid-template-columns: 1fr; }
    .type-tile { min-height: 250px; }
    .section { padding: 50px 0; }
    .section-heading h2, .watch-split h2, .callout-row h2, .desktop-layout h2, .download-panel h2, .direct-grid h2, .trust-layout h2, .article-main h2 { font-size: 30px; }
    .category-jump__inner { width: 100%; }
    .category-jump a { min-width: 94px; padding-inline: 12px; }
    .guide-card, .device-card { min-height: auto; }
    .session-steps article { grid-template-columns: 38px 1fr; gap: 10px; }
    .inline-search, .search-form__row { flex-direction: column; min-width: 100%; }
    .direct-links > a { grid-template-columns: 36px 1fr auto; gap: 12px; }
    .app-hero__visual > img:first-child { width: 100%; height: 280px; }
    .app-hero__phone { width: 40%; height: 240px; }
    .download-panel { padding: 24px; gap: 28px; }
    .download-checks { grid-template-columns: 1fr; }
    .article-aside { grid-template-columns: 1fr; }
    .point-list__item { grid-template-columns: 42px 1fr; gap: 10px; }
    .result-item { grid-template-columns: 1fr auto; gap: 8px 14px; }
    .result-item__label { grid-column: 1 / -1; }
    .not-found__code { font-size: 66px; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .site-footer__grid > div:first-child { grid-column: auto; }
    .site-footer__bottom { flex-direction: column; }
}

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

/* Topic editorial detail */
.section--editorial { background: #fff; }
.editorial-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 68px; align-items: start; }
.editorial-layout__intro { position: sticky; top: calc(var(--header-h) + 34px); }
.editorial-layout__intro h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.2; letter-spacing: -.03em; }
.editorial-layout__intro > p:last-child { color: var(--muted); margin-top: 16px; }
.editorial-notes { border-top: 1px solid var(--line); }
.editorial-notes article { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.editorial-notes article span { color: var(--brand); font-size: 12px; font-weight: 900; padding-top: 2px; }
.editorial-notes article p { margin: 0; color: #44454a; }
.editorial-closing { margin: 26px 0 0; padding: 20px 22px; border-left: 3px solid var(--brand); background: var(--soft); color: #44454a; border-radius: 0 12px 12px 0; }
@media (max-width: 820px) {
    .editorial-layout { grid-template-columns: 1fr; gap: 30px; }
    .editorial-layout__intro { position: static; }
}
@media (max-width: 560px) {
    .editorial-notes article { grid-template-columns: 38px 1fr; gap: 10px; }
    .editorial-closing { padding: 17px 18px; }
}
