/* 大师兄影视 - 深青灰内容平台视觉 */
:root {
    --green: #2F6F68;
    --green-soft: #6F9F95;
    --ink: #18211F;
    --paper: #F4F6F3;
    --paper-2: #E7ECE8;
    --text: #252B29;
    --muted: #68716D;
    --accent: #E6A23C;
    --white: #FFFFFF;
    --line: rgba(24, 33, 31, .12);
    --line-dark: rgba(255, 255, 255, .13);
    --shadow-sm: 0 10px 28px rgba(24, 33, 31, .08);
    --shadow-md: 0 24px 65px rgba(24, 33, 31, .12);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --shell: min(1240px, calc(100vw - 48px));
    --narrow: min(760px, calc(100vw - 48px));
    --header-h: 82px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); color: var(--text); }
body { margin: 0; min-width: 320px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background: var(--paper); color: var(--text); line-height: 1.7; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, input { border-radius: 0; }
button { cursor: pointer; }
::selection { background: rgba(47,111,104,.22); }
.shell { width: var(--shell); margin-inline: auto; }
.narrow-shell { width: var(--narrow); }
.section-space { padding-block: 74px; }
.site-main { overflow: clip; }
.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; left: 18px; top: 14px; z-index: 9999; background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: 8px; transform: translateY(-150%); box-shadow: var(--shadow-sm); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(230,162,60,.82); outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 80; background: rgba(244,246,243,.94); backdrop-filter: blur(18px); border-bottom: 1px solid transparent; transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 26px rgba(24,33,31,.06); }
.site-header.is-compact { transform: translateY(-100%); }
.site-header__inner { min-height: var(--header-h); display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand img { width: 48px; height: 48px; object-fit: cover; border-radius: 14px; background: var(--paper-2); }
.brand__text { display: grid; line-height: 1.15; gap: 5px; }
.brand__text strong { color: var(--ink); font-size: 1.02rem; letter-spacing: .02em; }
.brand__text small { color: var(--muted); font-size: .68rem; letter-spacing: .08em; }
.primary-nav { display: flex; justify-content: center; align-items: center; gap: 4px; }
.primary-nav a { padding: 10px 13px; border-radius: 10px; color: #48514e; font-size: .93rem; transition: color .2s ease, background .2s ease; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--green); background: rgba(47,111,104,.09); }
.header-search { display: flex; align-items: center; border: 1px solid var(--line); background: var(--white); border-radius: 999px; overflow: hidden; min-width: 244px; }
.header-search input { min-width: 0; width: 178px; border: 0; background: transparent; outline: 0; padding: 9px 6px 9px 14px; color: var(--text); }
.header-search input::placeholder { color: #89918e; }
.header-search button { border: 0; background: transparent; color: var(--green); font-weight: 700; padding: 9px 13px; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); align-items: center; gap: 8px; padding: 8px; }
.menu-toggle__icon { width: 21px; display: grid; gap: 4px; }
.menu-toggle__icon i { display: block; height: 2px; background: currentColor; border-radius: 999px; }
.mobile-menu-scrim { position: fixed; inset: 0; background: rgba(15,22,20,.45); z-index: 69; opacity: 0; transition: opacity .18s ease; }
.mobile-menu-scrim.is-visible { opacity: 1; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 800; font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; opacity: .6; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.18; letter-spacing: -.025em; }
h1 { font-size: clamp(2.35rem, 5vw, 5.3rem); }
h2 { font-size: clamp(1.75rem, 3vw, 3.15rem); }
h3 { font-size: 1.1rem; }
p { margin: 0; }
.lede, .hero-lede { color: #52605b; font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.85; }
.section-heading { display: grid; gap: 14px; margin-bottom: 34px; }
.section-heading--split { grid-template-columns: minmax(0, 1.4fr) minmax(260px, .7fr); align-items: end; gap: 42px; }
.section-heading--split p { color: var(--muted); max-width: 50ch; justify-self: end; }
.section-heading--inverse h2, .section-heading--inverse p, .section-heading--inverse .eyebrow { color: var(--white); }
.section-heading--inverse p { opacity: .74; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 11px 19px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; font-size: .92rem; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--green); color: var(--white); box-shadow: 0 10px 22px rgba(47,111,104,.20); }
.button--accent { background: var(--accent); color: #2e2417; box-shadow: 0 10px 22px rgba(230,162,60,.23); }
.button--ghost { border-color: var(--line); background: rgba(255,255,255,.64); color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-weight: 800; font-size: .9rem; }
.text-link span { transition: transform .18s ease; }
.text-link:hover span { transform: translateX(3px); }
.text-link--light { color: #cce1dc; }

.hero-shell { display: grid; grid-template-columns: minmax(0, .86fr) minmax(420px, 1.14fr); gap: 56px; align-items: center; padding-top: 46px; padding-bottom: 54px; }
.hero-copy { display: grid; gap: 24px; }
.hero-copy h1 { max-width: 10ch; }
.hero-lede { max-width: 42em; }
.hero-facts { margin: 8px 0 0; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.hero-facts div { display: grid; gap: 4px; }
.hero-facts dt { color: var(--muted); font-size: .78rem; }
.hero-facts dd { margin: 0; color: var(--ink); font-weight: 700; font-size: .9rem; }
.hero-visual { position: relative; min-height: 540px; border-radius: 30px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow-md); }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,33,31,.04) 34%, rgba(24,33,31,.86) 100%); }
.hero-visual img { width: 100%; height: 100%; min-height: 540px; object-fit: cover; transition: transform .55s ease; }
.hero-visual:hover img { transform: scale(1.025); }
.hero-visual__label, .hero-visual strong, .hero-visual small { position: absolute; z-index: 1; left: 28px; }
.hero-visual__label { top: 28px; background: var(--accent); color: #2e2417; font-size: .74rem; font-weight: 900; border-radius: 999px; padding: 7px 11px; }
.hero-visual strong { bottom: 52px; color: var(--white); font-size: clamp(1.5rem,2.6vw,2.7rem); }
.hero-visual small { bottom: 28px; color: rgba(255,255,255,.7); }

.feature-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; align-items: start; }
.media-card { min-width: 0; }
.media-card__image-link { position: relative; display: block; overflow: hidden; border-radius: 18px; background: #dfe6e1; aspect-ratio: 4 / 5.35; }
.media-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.media-card:hover .media-card__image { transform: scale(1.035); filter: saturate(.92) contrast(1.02); }
.media-card__badge { position: absolute; left: 12px; top: 12px; z-index: 1; background: rgba(24,33,31,.82); color: var(--white); backdrop-filter: blur(8px); border-radius: 999px; font-size: .7rem; font-weight: 800; padding: 6px 9px; }
.media-card__body { padding: 15px 4px 0; display: grid; gap: 8px; }
.media-card__meta { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .75rem; }
.media-card__meta span + span::before { content: "·"; margin-right: 8px; }
.media-card__title { font-size: 1.12rem; }
.media-card__title a:hover { color: var(--green); }
.media-card__summary { color: var(--muted); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.media-card--featured { grid-column: span 2; grid-row: span 2; }
.media-card--featured .media-card__image-link { aspect-ratio: 16 / 12; }
.media-card--featured .media-card__title { font-size: 1.45rem; }
.media-card--featured .media-card__summary { font-size: .94rem; -webkit-line-clamp: 2; }
.media-card--horizontal { display: grid; grid-template-columns: 148px minmax(0,1fr); gap: 17px; align-items: center; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.media-card--horizontal .media-card__image-link { aspect-ratio: 1 / 1.18; border-radius: 13px; }
.media-card--horizontal .media-card__body { padding: 0; }
.media-card--horizontal .media-card__summary { -webkit-line-clamp: 2; }
.media-card--horizontal .media-card__badge { font-size: .64rem; }
.poster-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 28px 18px; }
.poster-grid--four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.poster-grid--dense { grid-template-columns: repeat(6,minmax(0,1fr)); }
.poster-grid--dense .media-card__summary { -webkit-line-clamp: 2; }

.category-band { background: var(--ink); }
.category-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.category-tile { position: relative; min-height: 190px; padding: 24px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.035); border-radius: 18px; color: var(--white); overflow: hidden; transition: background .2s ease, transform .2s ease; }
.category-tile:hover { background: rgba(111,159,149,.12); transform: translateY(-3px); }
.category-tile::after { content: ""; position: absolute; width: 96px; height: 96px; right: -34px; bottom: -34px; border: 1px solid rgba(111,159,149,.22); border-radius: 50%; }
.category-tile__count { display: block; color: #9bc4ba; font-size: .76rem; margin-bottom: 22px; }
.category-tile strong { display: block; font-size: 1.28rem; margin-bottom: 10px; }
.category-tile p { color: rgba(255,255,255,.62); font-size: .86rem; max-width: 34ch; }

.discovery-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.65fr); gap: 44px; align-items: start; }
.media-list-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.discovery-rail { display: grid; gap: 18px; position: sticky; top: 104px; }
.rail-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-sm); }
.rail-card > p { color: var(--muted); margin: 10px 0 18px; font-size: .88rem; }
.rail-card--accent { background: #dfe9e5; box-shadow: none; }
.rank-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; }
.rank-item { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.rank-item__index { color: var(--green-soft); font-weight: 900; font-size: .72rem; }
.rank-item__title { color: var(--ink); font-weight: 800; font-size: .91rem; }
.rank-item__title:hover { color: var(--green); }
.rank-item p { color: var(--muted); font-size: .72rem; margin-top: 2px; }
.rail-search { display: grid; gap: 7px; }
.rail-search label { font-size: .78rem; color: var(--muted); }
.rail-search div { display: flex; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rail-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 10px 12px; }
.rail-search button { border: 0; background: var(--green); color: var(--white); padding: 10px 13px; font-weight: 800; }

.watch-strip { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); background: var(--paper-2); border-radius: 28px; padding: 0; overflow: hidden; }
.watch-strip__visual img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; }
.watch-strip__copy { padding: clamp(34px,5vw,68px); align-self: center; display: grid; gap: 18px; }
.watch-strip__copy p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 9px; }
.check-list li { position: relative; padding-left: 24px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(230,162,60,.14); }
.watch-strip__copy .button { justify-self: start; }
.home-brand { border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 42px 60px; }
.home-brand > p { color: var(--muted); font-size: 1.03rem; }
.link-cluster { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.link-cluster a { padding: 9px 13px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--green); font-weight: 700; font-size: .86rem; }

.breadcrumb { margin-bottom: 30px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: .8rem; }
.breadcrumb li { display: flex; align-items: center; gap: 7px; }
.breadcrumb li:not(:last-child)::after { content: "/"; opacity: .45; }
.breadcrumb a:hover { color: var(--green); }

.brand-intro__grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(420px,1.1fr); gap: 56px; align-items: center; }
.brand-intro__grid > div { display: grid; gap: 22px; }
.brand-intro__image { margin: 0; background: var(--paper-2); border-radius: 28px; overflow: hidden; }
.brand-intro__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.brand-intro__image figcaption { padding: 12px 16px 15px; color: var(--muted); font-size: .8rem; }
.brand-map__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brand-map__grid article { min-height: 210px; padding: 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; align-content: start; gap: 11px; }
.brand-map__grid strong { font-size: 1.24rem; color: var(--ink); }
.brand-map__grid p { color: var(--muted); font-size: .9rem; }
.identity-split { background: var(--ink); color: var(--white); }
.identity-split__inner { display: grid; grid-template-columns: minmax(0,.85fr) minmax(420px,1.15fr); gap: 70px; align-items: center; }
.identity-split__copy { display: grid; gap: 18px; }
.identity-split__copy h2 { color: var(--white); }
.identity-split__copy p { color: rgba(255,255,255,.68); }
.identity-split__inner img { border-radius: 20px; aspect-ratio: 4 / 3; object-fit: cover; }
.identity-actions { display: grid; border-top: 1px solid var(--line-dark); }
.identity-actions a { padding: 12px 0; border-bottom: 1px solid var(--line-dark); color: #b8d8d0; font-weight: 700; }
.info-columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.info-columns article { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 25px; }
.info-columns h3 { margin-bottom: 11px; }
.info-columns p { color: var(--muted); font-size: .9rem; }

.watch-hero { display: grid; grid-template-columns: minmax(0,.9fr) minmax(400px,1.1fr); gap: 54px; align-items: center; }
.watch-hero .breadcrumb { grid-column: 1 / -1; margin-bottom: -6px; }
.watch-hero__content { display: grid; gap: 22px; }
.watch-hero__links { display: flex; flex-wrap: wrap; gap: 8px; }
.watch-hero__links a { border-bottom: 1px solid var(--green); color: var(--green); font-weight: 800; font-size: .86rem; }
.watch-hero__visual { border-radius: 26px; overflow: hidden; background: var(--paper-2); }
.watch-hero__visual img { width: 100%; min-height: 470px; object-fit: cover; }
.watch-flow { background: var(--green); }
.step-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.step-grid article { min-height: 190px; padding: 24px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; color: var(--white); }
.step-grid span { color: #d9bb7d; font-weight: 900; font-size: .78rem; }
.step-grid h3 { color: var(--white); margin: 24px 0 8px; }
.step-grid p { color: rgba(255,255,255,.68); font-size: .9rem; }
.watch-notes { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 50px; align-items: start; }
.watch-notes__main { display: grid; gap: 16px; }
.watch-notes__main p { color: var(--muted); max-width: 74ch; }
.watch-notes aside { background: var(--paper-2); border-radius: 18px; padding: 22px; display: grid; gap: 5px; }
.watch-notes aside h3 { margin-bottom: 8px; }
.watch-notes aside a { padding: 9px 0; border-top: 1px solid var(--line); color: var(--green); font-weight: 700; font-size: .88rem; }

.library-header { padding-bottom: 26px; }
.library-header__layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 54px; align-items: end; }
.library-header__layout > div { display: grid; gap: 18px; }
.library-search { display: grid; gap: 8px; }
.library-search label { color: var(--muted); font-size: .8rem; }
.library-search div { display: flex; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.library-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 12px 13px; }
.library-search button { border: 0; background: var(--green); color: var(--white); padding: 10px 16px; font-weight: 800; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 34px; }
.filter-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .86rem; color: var(--muted); background: rgba(255,255,255,.55); }
.filter-tabs a span { font-size: .7rem; opacity: .75; }
.filter-tabs a[aria-current="page"] { background: var(--green); color: var(--white); border-color: var(--green); }
.library-results { border-top: 1px solid var(--line); }

.detail-hero { padding-bottom: 46px; }
.detail-hero__grid { display: grid; grid-template-columns: minmax(280px,360px) minmax(0,1fr); gap: 60px; align-items: center; }
.detail-poster { margin: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md); background: var(--paper-2); }
.detail-poster img { width: 100%; aspect-ratio: 3 / 4.08; object-fit: cover; }
.detail-copy { display: grid; gap: 20px; }
.detail-copy h1 { font-size: clamp(2.6rem,5vw,5.2rem); }
.detail-summary { color: #53605d; font-size: 1.14rem; max-width: 58ch; }
.detail-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 8px 0; }
.detail-meta div { background: var(--paper); padding: 14px; }
.detail-meta dt { color: var(--muted); font-size: .74rem; }
.detail-meta dd { margin: 4px 0 0; font-weight: 800; color: var(--ink); }
.detail-body { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 60px; border-top: 1px solid var(--line); }
.detail-article { max-width: 760px; }
.detail-article h2 { margin: 10px 0 25px; }
.detail-article p { color: #4d5653; margin: 0 0 18px; line-height: 1.95; }
.detail-side { display: grid; gap: 16px; align-content: start; }
.detail-side > div { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.detail-side h2 { font-size: 1.2rem; margin-bottom: 8px; }
.detail-side p { color: var(--muted); font-size: .86rem; margin-bottom: 12px; }
.detail-side a { display: block; padding: 9px 0; border-top: 1px solid var(--line); color: var(--green); font-size: .86rem; font-weight: 800; }
.detail-side__note { background: #fff7e8!important; border-color: rgba(230,162,60,.3)!important; }
.detail-side__note strong { color: #8a5a15; }
.related-section { background: var(--ink); }
.related-section .media-card__title a, .related-section .media-card__body { color: var(--white); }
.related-section .media-card__meta, .related-section .media-card__summary { color: rgba(255,255,255,.62); }
.related-section .text-link:not(.text-link--light) { color: #b8d8d0; }

.search-hero { max-width: 920px; }
.search-hero .lede { max-width: 58ch; margin-top: 18px; }
.search-large { display: grid; gap: 8px; margin-top: 28px; }
.search-large label { color: var(--muted); font-size: .8rem; }
.search-large div { display: flex; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.search-large input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 15px 16px; }
.search-large button { border: 0; background: var(--green); color: var(--white); padding: 12px 24px; font-weight: 900; }
.search-results { border-top: 1px solid var(--line); }
.empty-state { padding: 48px; background: var(--paper-2); border-radius: 22px; display: grid; justify-items: start; gap: 14px; }
.empty-state p { color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-row a { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: var(--green); font-weight: 700; }

.download-hero__grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(420px,1.1fr); gap: 54px; align-items: center; }
.download-hero__grid > div { display: grid; gap: 22px; }
.download-hero__grid img { border-radius: 26px; aspect-ratio: 4 / 3; object-fit: cover; }
.use-grid { border-top: 1px solid var(--line); }
.download-note { background: var(--paper-2); }
.download-note__inner { display: grid; grid-template-columns: minmax(420px,1.15fr) minmax(0,.85fr); gap: 54px; align-items: center; }
.download-note__inner img { border-radius: 22px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.download-note__inner > div { display: grid; gap: 16px; }
.download-note__inner p { color: var(--muted); }

.error-page { min-height: 62vh; display: grid; align-content: center; justify-items: start; gap: 18px; }
.error-page h1 { font-size: clamp(2.3rem,6vw,5rem); }
.error-page p { color: var(--muted); font-size: 1.05rem; }

.site-footer { background: var(--ink); color: var(--white); padding: 58px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr 1fr; gap: 48px; }
.site-footer h2 { color: var(--white); font-size: .95rem; margin-bottom: 13px; }
.footer-brand p, .footer-note p { color: rgba(255,255,255,.58); font-size: .84rem; max-width: 42ch; }
.footer-domain { display: inline-flex; margin-top: 15px; color: #b8d8d0; font-weight: 700; font-size: .84rem; }
.site-footer nav { display: grid; align-content: start; gap: 7px; }
.site-footer nav a { color: rgba(255,255,255,.64); font-size: .84rem; }
.site-footer nav a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--line-dark); margin-top: 42px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.45); font-size: .76rem; }
.footer-bottom a { color: #b8d8d0; }

.reveal-ready { opacity: 0; transform: translateY(12px); }
.reveal-visible { opacity: 1; transform: translateY(0); transition: opacity .48s ease, transform .48s ease; }

@media (max-width: 1120px) {
    :root { --shell: min(100% - 36px, 1120px); }
    .header-search { display: none; }
    .site-header__inner { grid-template-columns: auto 1fr; }
    .primary-nav { justify-content: flex-end; }
    .hero-shell { grid-template-columns: minmax(0,.95fr) minmax(380px,1.05fr); gap: 36px; }
    .hero-visual, .hero-visual img { min-height: 480px; }
    .feature-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .media-card--featured { grid-column: span 2; }
    .poster-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .poster-grid--dense { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .media-list-grid { grid-template-columns: 1fr; }
    .discovery-layout { grid-template-columns: minmax(0,1fr) 320px; gap: 28px; }
    .footer-grid { grid-template-columns: 1.2fr repeat(3,1fr); gap: 30px; }
}

@media (max-width: 860px) {
    :root { --header-h: 70px; --shell: min(100% - 28px, 820px); --narrow: min(100% - 28px, 720px); }
    .section-space { padding-block: 56px; }
    .site-header__inner { grid-template-columns: 1fr auto; min-height: 70px; }
    .brand img { width: 42px; height: 42px; }
    .brand__text small { display: none; }
    .menu-toggle { display: inline-flex; justify-self: end; }
    .primary-nav { position: fixed; z-index: 70; right: 0; top: 0; height: 100dvh; width: min(82vw,360px); background: var(--paper); box-shadow: -20px 0 60px rgba(24,33,31,.18); padding: 92px 24px 30px; display: grid; align-content: start; gap: 6px; transform: translateX(105%); visibility: hidden; transition: transform .22s ease, visibility .22s ease; }
    .primary-nav[data-open="true"] { transform: translateX(0); visibility: visible; }
    .primary-nav a { padding: 12px 13px; font-size: 1rem; }
    .hero-shell, .brand-intro__grid, .watch-hero, .download-hero__grid { grid-template-columns: 1fr; }
    .hero-copy h1 { max-width: 12ch; }
    .hero-visual, .hero-visual img { min-height: 440px; }
    .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .discovery-layout { grid-template-columns: 1fr; }
    .discovery-rail { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .watch-strip { grid-template-columns: 1fr; }
    .watch-strip__visual img { min-height: 360px; max-height: 460px; }
    .home-brand { grid-template-columns: 1fr; gap: 20px; }
    .link-cluster { grid-column: auto; }
    .brand-map__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .identity-split__inner { grid-template-columns: 1fr; gap: 34px; }
    .poster-grid, .poster-grid--dense, .poster-grid--four { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .library-header__layout { grid-template-columns: 1fr; gap: 26px; }
    .watch-notes, .detail-body { grid-template-columns: 1fr; }
    .detail-side { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .detail-hero__grid { grid-template-columns: minmax(220px,280px) minmax(0,1fr); gap: 34px; }
    .download-note__inner { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 620px) {
    :root { --shell: calc(100% - 22px); --narrow: calc(100% - 22px); }
    .section-space { padding-block: 44px; }
    .brand__text strong { font-size: .95rem; }
    .section-heading--split { grid-template-columns: 1fr; gap: 13px; }
    .section-heading--split p { justify-self: start; }
    .hero-shell { padding-top: 24px; gap: 30px; }
    .hero-copy { gap: 19px; }
    .hero-facts { grid-template-columns: 1fr; gap: 13px; }
    .hero-visual, .hero-visual img { min-height: 390px; }
    .hero-visual { border-radius: 22px; }
    .feature-grid { grid-template-columns: 1fr; }
    .media-card--featured { grid-column: auto; grid-row: auto; }
    .media-card--featured .media-card__image-link { aspect-ratio: 4 / 5.35; }
    .category-grid { grid-template-columns: 1fr; }
    .category-tile { min-height: 160px; }
    .media-list-grid { grid-template-columns: 1fr; }
    .media-card--horizontal { grid-template-columns: 112px minmax(0,1fr); }
    .discovery-rail { grid-template-columns: 1fr; }
    .watch-strip { border-radius: 20px; }
    .watch-strip__visual img { min-height: 290px; }
    .watch-strip__copy { padding: 28px 22px 32px; }
    .brand-map__grid, .info-columns, .step-grid { grid-template-columns: 1fr; }
    .poster-grid, .poster-grid--dense, .poster-grid--four { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 12px; }
    .media-card__summary { -webkit-line-clamp: 2; }
    .watch-hero__visual img { min-height: 330px; }
    .watch-notes { gap: 24px; }
    .detail-hero__grid { grid-template-columns: 1fr; }
    .detail-poster { width: min(75vw,300px); }
    .detail-meta { grid-template-columns: 1fr; }
    .detail-side { grid-template-columns: 1fr; }
    .search-large div, .library-search div { flex-direction: column; border-radius: 14px; }
    .search-large button, .library-search button { min-height: 46px; }
    .empty-state { padding: 28px 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
    .poster-grid, .poster-grid--dense, .poster-grid--four { grid-template-columns: 1fr 1fr; }
    .media-card__body { padding-top: 10px; }
    .media-card__title { font-size: .98rem; }
    .media-card__summary { display: none; }
    .media-card .text-link { font-size: .78rem; }
    .media-card__badge { max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .button-row { display: grid; grid-template-columns: 1fr; }
    .button { width: 100%; }
}

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

@media (prefers-contrast: more) {
    :root { --line: rgba(24,33,31,.3); --muted: #4e5754; }
    .button--ghost, .filter-tabs a, .link-cluster a { border-width: 2px; }
}

@media print {
    .site-header, .site-footer, .button-row, .header-search, .menu-toggle, .mobile-menu-scrim { display: none!important; }
    body { background: #fff; color: #000; }
    .site-main { overflow: visible; }
    .shell, .narrow-shell { width: 100%; }
    .section-space { padding-block: 20px; }
    a { text-decoration: underline; }
    .media-card__image-link, .hero-visual, .brand-intro__image, .watch-hero__visual, .detail-poster { box-shadow: none; }
}
