:root {
    --tea: #6B5C4D;
    --tea-soft: #A78B6D;
    --ink: #25211E;
    --paper: #F7F4EF;
    --paper-2: #EEE8E0;
    --text: #292724;
    --muted: #746E67;
    --accent: #D97732;
    --white: #fffdf9;
    --line: rgba(37, 33, 30, .13);
    --line-strong: rgba(37, 33, 30, .22);
    --shadow: 0 20px 50px rgba(37, 33, 30, .10);
    --shadow-soft: 0 10px 28px rgba(37, 33, 30, .08);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shell: min(1440px, calc(100vw - 64px));
    --reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
    margin: 0;
    color: var(--text);
    background: var(--paper);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
main { min-height: 68vh; overflow: hidden; }
.shell { width: var(--shell); margin-inline: auto; }
.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: 2000;
    left: 16px;
    top: 12px;
    transform: translateY(-140%);
    background: var(--ink);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(217, 119, 50, .6); outline-offset: 3px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(247, 244, 239, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}
.site-header__inner {
    min-height: 80px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
}
.brand-mark { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark img { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; background: var(--paper-2); }
.brand-mark span { display: grid; line-height: 1.18; gap: 3px; }
.brand-mark strong { font-size: 18px; letter-spacing: .03em; color: var(--ink); }
.brand-mark small { font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.primary-nav { display: flex; justify-content: center; align-items: center; gap: 5px; }
.primary-nav a { color: #514b45; padding: 9px 12px; border-radius: 999px; font-size: 14px; transition: background .18s ease, color .18s ease; }
.primary-nav a:hover, .primary-nav a.is-active { background: var(--paper-2); color: var(--ink); }
.primary-nav a[aria-current="page"] { font-weight: 700; }
.header-search {
    display: grid;
    grid-template-columns: minmax(130px, 210px) auto;
    align-items: stretch;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    overflow: hidden;
    background: var(--white);
}
.header-search input { min-width: 0; border: 0; background: transparent; padding: 9px 10px 9px 16px; color: var(--text); outline: none; }
.header-search input::placeholder { color: #9a9289; }
.header-search button { border: 0; background: var(--ink); color: white; padding: 8px 15px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: 12px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: .14em;
    font-size: 12px;
    text-transform: uppercase;
}
.hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(560px, 1.08fr); gap: 54px; align-items: center; padding-block: 56px 76px; }
.hero__copy { max-width: 650px; }
.hero h1, .page-hero h1, .brand-hero h1, .entry-hero h1, .search-hero h1, .detail-hero h1, .not-found h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(40px, 5vw, 76px);
    line-height: 1.04;
    letter-spacing: -.04em;
}
.hero__lead { margin: 24px 0 0; max-width: 610px; color: #5c554f; font-size: 18px; line-height: 1.8; }
.hero-search { margin-top: 32px; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-soft); }
.hero-search > label { display: block; font-size: 12px; color: var(--muted); padding: 3px 8px 5px; }
.hero-search > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.hero-search input { width: 100%; min-width: 0; border: 0; background: var(--paper-2); border-radius: 12px; padding: 13px 14px; outline: none; }
.hero-search button { border: 0; color: white; background: var(--accent); padding: 10px 20px; border-radius: 12px; font-weight: 750; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 12px; font-weight: 750; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button--accent { background: var(--accent); color: white; box-shadow: 0 10px 20px rgba(217, 119, 50, .18); }
.button--accent:hover { box-shadow: 0 14px 24px rgba(217, 119, 50, .24); }
.button--ghost { border: 1px solid var(--line-strong); background: rgba(255,255,255,.45); color: var(--ink); }
.button--dark { background: var(--ink); color: white; }
.hero__visual { position: relative; min-width: 0; }
.hero__visual > img { width: 100%; aspect-ratio: 1.42; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow); background: var(--paper-2); }
.hero__rail {
    width: calc(100% - 52px);
    margin: -52px auto 0;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(37, 33, 30, .94);
    color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.hero__rail a { padding: 17px 14px; border-right: 1px solid rgba(255,255,255,.1); }
.hero__rail a:last-child { border-right: 0; }
.hero__rail strong { display: block; font-size: 14px; }
.hero__rail span { display: block; margin-top: 3px; font-size: 10px; color: rgba(255,255,255,.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.content-band { padding-block: 82px; }
.content-band--warm { background: var(--paper-2); }
.content-band--ink { background: var(--ink); color: rgba(255,255,255,.82); }
.content-band--ink .eyebrow { color: #efaa74; }
.content-band--ink h2, .content-band--ink h3, .content-band--ink a { color: white; }
.section-heading { margin-bottom: 28px; max-width: 900px; }
.section-heading h2, .split-stage__intro h2, .discover-panel__copy h2, .guide-grid h2, .brand-strip h2, .brand-facts h2, .brand-flow h2, .identity-section h2, .entry-detail h2, .entry-next h2, .detail-body h2, .watch-note h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(28px, 3.4vw, 50px);
    line-height: 1.12;
    letter-spacing: -.03em;
}
.section-heading--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr); align-items: end; gap: 48px; max-width: none; }
.section-heading--split > p { color: var(--muted); margin: 0; max-width: 520px; justify-self: end; }
.media-grid { display: grid; gap: 18px; }
.media-grid--six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.media-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.media-grid--catalog { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.media-card { min-width: 0; }
.media-card__poster { position: relative; display: block; overflow: hidden; border-radius: 17px; background: #ddd5ca; }
.media-card__poster img { width: 100%; aspect-ratio: .76; object-fit: cover; transition: transform .28s ease; }
.media-card:hover .media-card__poster img { transform: scale(1.025); }
.media-card__type { position: absolute; left: 10px; bottom: 10px; background: rgba(37, 33, 30, .86); color: white; font-size: 11px; padding: 4px 8px; border-radius: 999px; backdrop-filter: blur(8px); }
.media-card__body { padding: 13px 2px 0; }
.media-card__meta { display: flex; flex-wrap: wrap; gap: 5px 9px; color: var(--muted); font-size: 11px; }
.media-card__meta span { position: relative; }
.media-card__meta span:not(:last-child)::after { content: "·"; position: absolute; right: -7px; }
.media-card h3 { margin: 5px 0 4px; color: var(--ink); font-size: 16px; line-height: 1.35; }
.media-card h3 a:hover { color: var(--accent); }
.media-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.media-card--compact .media-card__poster img { aspect-ratio: .78; }
.media-card--compact p { -webkit-line-clamp: 2; }
.section-end { display: flex; justify-content: flex-end; margin-top: 24px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--tea); font-weight: 800; }
.text-link:hover { color: var(--accent); }
.text-link--light { color: #e5c6aa !important; }

.split-stage { display: grid; grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr); gap: 70px; align-items: start; }
.split-stage__intro { position: sticky; top: 122px; padding-top: 16px; }
.split-stage__intro p:not(.eyebrow) { color: var(--muted); max-width: 500px; }
.split-stage__intro .button { margin-top: 10px; }
.stack-list { display: grid; border-top: 1px solid var(--line); }
.stack-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding-block: 22px; border-bottom: 1px solid var(--line); align-items: center; }
.stack-card img { width: 200px; height: 132px; object-fit: cover; border-radius: 14px; background: var(--paper-2); }
.stack-card h3 { margin: 2px 0 7px; font-size: 23px; line-height: 1.2; color: var(--ink); }
.stack-card h3 a:hover { color: var(--accent); }
.stack-card p { margin: 0; color: var(--muted); font-size: 13px; }
.micro-meta { font-size: 11px !important; letter-spacing: .03em; color: var(--tea-soft) !important; }

.discover-panel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); align-items: center; gap: 64px; padding-block: 90px; }
.discover-panel__image img { width: 100%; aspect-ratio: 1.15; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); }
.discover-panel__copy { max-width: 580px; }
.discover-panel__copy p:not(.eyebrow) { color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.chip-row a { border: 1px solid var(--line-strong); background: var(--white); border-radius: 999px; padding: 7px 12px; font-size: 13px; }
.chip-row a:hover { border-color: var(--accent); color: var(--accent); }
.compact-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.compact-pair > div > p:not(.eyebrow) { color: rgba(255,255,255,.58); max-width: 650px; }
.poster-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.content-band--ink .media-card__meta, .content-band--ink .media-card p { color: rgba(255,255,255,.55); }
.content-band--ink .media-card__type { background: rgba(247,244,239,.9); color: var(--ink); }
.guide-grid { padding-block: 86px; }
.guide-grid__items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.guide-grid__items article { padding: 24px; min-height: 190px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.guide-grid__items h3 { margin: 0 0 12px; color: var(--ink); font-size: 18px; }
.guide-grid__items p { margin: 0; color: var(--muted); font-size: 13px; }
.brand-strip { padding: 58px 0; background: #e6ded4; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brand-strip__inner { display: grid; grid-template-columns: 1fr 1.15fr auto; gap: 44px; align-items: center; }
.brand-strip h2 { font-size: clamp(27px, 3vw, 44px); }
.brand-strip__inner > p { margin: 0; color: var(--muted); }
.brand-strip__links { display: grid; gap: 8px; min-width: 180px; }
.brand-strip__links a { background: var(--white); border: 1px solid var(--line); padding: 11px 14px; border-radius: 10px; font-weight: 750; }
.brand-strip__links a:hover { border-color: var(--accent); color: var(--accent); }

.breadcrumbs { margin-bottom: 25px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; color: var(--muted); font-size: 12px; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; opacity: .45; }
.breadcrumbs a:hover { color: var(--accent); }
.page-hero { background: #e9e1d7; border-bottom: 1px solid var(--line); }
.page-hero__inner { display: grid; grid-template-columns: minmax(0, .88fr) minmax(440px, 1.12fr); gap: 64px; align-items: center; padding-block: 54px; }
.page-hero__inner > div > p:last-child { max-width: 650px; color: var(--muted); font-size: 17px; }
.page-hero__inner img { width: 100%; max-height: 390px; object-fit: cover; border-radius: 24px; }
.filter-shell { padding-block: 38px 90px; }
.type-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.type-tabs a { min-width: 72px; text-align: center; padding: 9px 15px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); font-size: 14px; }
.type-tabs a[aria-current="page"] { color: white; background: var(--ink); border-color: var(--ink); }
.result-line { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 22px; }
.result-line strong { color: var(--ink); font-size: 20px; }
.result-line span { color: var(--muted); font-size: 12px; }
.watch-note { margin-bottom: 90px; padding: 30px 34px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 22px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.watch-note h2 { font-size: 28px; }
.watch-note p { margin: 8px 0 0; color: var(--muted); max-width: 850px; }

.brand-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr); gap: 72px; align-items: center; padding-block: 70px; }
.brand-hero__copy > p:not(.eyebrow) { color: var(--muted); font-size: 17px; max-width: 650px; }
.brand-hero__image img { width: 100%; aspect-ratio: 1.14; object-fit: cover; border-radius: 44px 12px 44px 12px; box-shadow: var(--shadow); }
.brand-facts { padding-block: 40px 90px; }
.fact-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.fact-grid article { position: relative; min-height: 210px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.fact-grid span { display: block; color: var(--tea-soft); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.fact-grid p { margin: 38px 0 0; color: #514b45; font-size: 13px; }
.brand-flow { background: var(--ink); color: white; padding-block: 88px; }
.brand-flow__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: center; }
.brand-flow img { width: 100%; aspect-ratio: 1.35; object-fit: cover; border-radius: 26px; opacity: .94; }
.brand-flow h2 { color: white; }
.brand-flow p:not(.eyebrow) { color: rgba(255,255,255,.62); }
.plain-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.15); }
.plain-list li { border-bottom: 1px solid rgba(255,255,255,.15); }
.plain-list a { display: block; padding: 11px 0; font-weight: 700; color: #f2dfcf; }
.plain-list a:hover { color: white; padding-left: 4px; }
.identity-section { display: grid; grid-template-columns: 1.1fr .9fr; gap: 90px; padding-block: 90px; align-items: start; }
.identity-section > div > p:not(.eyebrow) { color: var(--muted); max-width: 760px; }
.identity-section aside { background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.identity-section aside h3 { margin: 0 0 7px; font-size: 22px; color: var(--ink); }
.identity-section aside p { color: var(--muted); }

.entry-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 68px; align-items: center; padding-block: 68px; }
.entry-hero > div > p:not(.eyebrow) { color: var(--muted); font-size: 17px; max-width: 780px; }
.entry-hero > img { width: 100%; max-height: 640px; object-fit: cover; border-radius: 90px 20px 90px 20px; }
.entry-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.entry-card { min-width: 0; padding: 18px; border: 1px solid var(--line); background: var(--white); border-radius: 16px; display: grid; gap: 5px; transition: transform .18s ease, border-color .18s ease; }
.entry-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.entry-card--primary { background: var(--ink); color: white; border-color: var(--ink); }
.entry-card span { font-size: 10px; color: var(--tea-soft); letter-spacing: .12em; }
.entry-card strong { font-size: 16px; }
.entry-card small { color: var(--muted); line-height: 1.4; }
.entry-card--primary small { color: rgba(255,255,255,.6); }
.entry-detail { padding-block: 72px; background: var(--paper-2); }
.entry-detail__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: center; }
.entry-detail__grid > div > p:not(.eyebrow) { color: var(--muted); }
.domain-box { background: var(--white); border-radius: 20px; border: 1px solid var(--line); padding: 28px; box-shadow: var(--shadow-soft); }
.domain-box small { display: block; color: var(--muted); }
.domain-box strong { display: block; margin: 8px 0 18px; font-size: clamp(18px, 2vw, 28px); word-break: break-all; color: var(--ink); }
.domain-box a { color: var(--accent); font-weight: 800; }
.entry-next { padding-block: 86px; }
.entry-next__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.entry-next__grid a { min-height: 150px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); display: flex; flex-direction: column; justify-content: flex-end; }
.entry-next__grid a:hover { border-color: var(--accent); box-shadow: var(--shadow-soft); }
.entry-next__grid strong { color: var(--ink); font-size: 22px; }
.entry-next__grid span { color: var(--muted); font-size: 12px; margin-top: 4px; }

.search-hero { background: var(--ink); color: white; padding-block: 64px; }
.search-hero__inner { display: grid; grid-template-columns: 1fr minmax(380px, .72fr); gap: 70px; align-items: end; }
.search-hero h1 { color: white; font-size: clamp(40px, 5vw, 68px); }
.search-hero .breadcrumbs { color: rgba(255,255,255,.55); }
.search-hero__inner > div > p:not(.eyebrow) { color: rgba(255,255,255,.6); max-width: 700px; }
.search-box { padding: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; }
.search-box label { display: block; font-size: 12px; color: rgba(255,255,255,.62); margin-bottom: 6px; }
.search-box > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.search-box input { min-width: 0; border: 0; border-radius: 11px; background: white; color: var(--text); padding: 13px 14px; outline: none; }
.search-box button { border: 0; border-radius: 11px; background: var(--accent); color: white; padding: 10px 20px; font-weight: 800; }
.search-results { padding-block: 50px 90px; }
.search-empty { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr); gap: 62px; align-items: center; min-height: 430px; }
.search-empty img { width: 100%; aspect-ratio: 1.3; object-fit: cover; border-radius: 24px; }
.search-empty h2, .no-results h2 { color: var(--ink); font-size: clamp(28px, 3.4vw, 48px); margin: 0; line-height: 1.14; }
.search-empty p, .no-results p { color: var(--muted); }
.no-results { min-height: 430px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; max-width: 780px; }
.no-results .button { margin-top: 10px; }

.detail-hero { display: grid; grid-template-columns: minmax(360px, .76fr) minmax(0, 1.24fr); gap: 74px; align-items: center; padding-block: 68px; }
.detail-hero__poster img { width: 100%; max-height: 680px; aspect-ratio: .88; object-fit: cover; border-radius: 34px; box-shadow: var(--shadow); }
.detail-hero h1 { font-size: clamp(42px, 6vw, 84px); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.detail-tags span { background: var(--paper-2); border: 1px solid var(--line); padding: 7px 11px; border-radius: 999px; font-size: 12px; color: var(--tea); }
.detail-lead { color: var(--muted); font-size: 18px; max-width: 760px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.detail-body { display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; padding-bottom: 88px; }
.detail-body article { max-width: var(--reading); }
.detail-body article p:not(.eyebrow) { color: #544e48; font-size: 16px; }
.detail-body aside { background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; padding: 26px; align-self: start; }
.detail-body aside h2 { font-size: 22px; }
.detail-body dl { margin: 16px 0 0; }
.detail-body dl > div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.detail-body dt { color: var(--muted); font-size: 12px; }
.detail-body dd { margin: 0; font-weight: 700; color: var(--ink); }
.related-section { padding-block: 70px 86px; }

.not-found { min-height: 680px; display: grid; grid-template-columns: 1fr minmax(320px, .8fr); gap: 80px; align-items: center; padding-block: 70px; }
.not-found__code { display: block; color: var(--tea-soft); font-size: 14px; font-weight: 900; letter-spacing: .18em; }
.not-found > div > p:not(.eyebrow) { color: var(--muted); max-width: 700px; }
.not-found img { width: 100%; aspect-ratio: 1.2; object-fit: cover; border-radius: 24px; }

.site-footer { background: #1f1b18; color: rgba(255,255,255,.68); padding: 60px 0 24px; }
.site-footer__grid { display: grid; grid-template-columns: 1.1fr .7fr 1fr; gap: 60px; padding-bottom: 36px; }
.footer-brand { color: white; font-size: 24px; font-weight: 850; }
.footer-brand span { color: var(--tea-soft); font-size: 14px; margin-left: 5px; font-weight: 600; }
.site-footer p { margin: 10px 0 0; max-width: 460px; font-size: 12px; }
.site-footer nav { display: grid; align-content: start; gap: 8px; }
.site-footer nav a { color: rgba(255,255,255,.84); font-size: 13px; }
.site-footer nav a:hover, .site-footer__note a:hover { color: #f2c8a6; }
.site-footer__note a { display: inline-block; margin-top: 14px; color: #e2b895; font-size: 12px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; font-size: 11px; color: rgba(255,255,255,.42); }

@media (max-width: 1280px) {
    :root { --shell: min(1180px, calc(100vw - 48px)); }
    .site-header__inner { gap: 18px; }
    .primary-nav a { padding-inline: 9px; font-size: 13px; }
    .header-search { grid-template-columns: 130px auto; }
    .hero { grid-template-columns: minmax(0, 1fr) minmax(480px, 1fr); gap: 38px; }
    .media-grid--six { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 30px; }
    .media-grid--catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .fact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1040px) {
    :root { --shell: calc(100vw - 40px); }
    .site-header__inner { grid-template-columns: auto 1fr auto; }
    .header-search { display: none; }
    .primary-nav { justify-content: flex-end; }
    .hero, .brand-hero, .entry-hero, .detail-hero { grid-template-columns: 1fr 1fr; gap: 34px; }
    .hero__rail { width: calc(100% - 24px); grid-template-columns: repeat(2, 1fr); margin-top: -36px; }
    .hero__rail a:nth-child(2) { border-right: 0; }
    .hero__rail a:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
    .media-grid--catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .split-stage { gap: 40px; grid-template-columns: .8fr 1.2fr; }
    .stack-card { grid-template-columns: 150px 1fr; gap: 18px; }
    .stack-card img { width: 150px; height: 110px; }
    .compact-pair { grid-template-columns: 1fr; }
    .guide-grid__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .brand-strip__inner { grid-template-columns: 1fr 1fr; }
    .brand-strip__links { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
    .page-hero__inner { grid-template-columns: 1fr 1fr; gap: 34px; }
    .entry-actions { grid-template-columns: 1fr; }
    .search-hero__inner { grid-template-columns: 1fr; gap: 32px; }
    .site-footer__grid { grid-template-columns: 1fr .7fr; }
    .site-footer__note { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
    :root { --shell: calc(100vw - 30px); }
    .site-header__inner { min-height: 70px; display: flex; justify-content: space-between; }
    .nav-toggle { display: inline-flex; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .primary-nav {
        position: fixed;
        inset: 70px 0 auto 0;
        display: none;
        background: var(--paper);
        padding: 18px 15px 26px;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 40px rgba(37,33,30,.12);
        flex-direction: column;
        align-items: stretch;
    }
    .primary-nav.is-open { display: flex; }
    .primary-nav a { padding: 11px 14px; border-radius: 10px; }
    .hero, .brand-hero, .entry-hero, .detail-hero, .page-hero__inner, .discover-panel, .brand-flow__grid, .entry-detail__grid, .identity-section, .detail-body, .not-found, .search-empty { grid-template-columns: 1fr; }
    .hero { padding-block: 42px 58px; }
    .hero h1, .page-hero h1, .brand-hero h1, .entry-hero h1, .search-hero h1, .detail-hero h1, .not-found h1 { font-size: clamp(36px, 11vw, 58px); }
    .hero__copy { max-width: none; }
    .hero__visual { margin-top: 8px; }
    .section-heading--split { grid-template-columns: 1fr; gap: 12px; }
    .section-heading--split > p { justify-self: start; }
    .media-grid--six, .media-grid--catalog, .media-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split-stage { grid-template-columns: 1fr; }
    .split-stage__intro { position: static; }
    .discover-panel { gap: 30px; padding-block: 70px; }
    .brand-strip__inner { grid-template-columns: 1fr; gap: 20px; }
    .brand-strip__links { grid-column: auto; }
    .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .brand-hero__image { order: -1; }
    .entry-hero > img { order: -1; max-height: 380px; }
    .entry-actions { grid-template-columns: repeat(3, 1fr); }
    .entry-next__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-hero__poster img { max-height: 520px; aspect-ratio: 1.2; }
    .detail-body { gap: 30px; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 560px) {
    :root { --shell: calc(100vw - 24px); }
    .brand-mark small { display: none; }
    .brand-mark img { width: 40px; height: 40px; }
    .hero { padding-block: 30px 44px; }
    .hero__lead { font-size: 15px; }
    .hero-search > div, .search-box > div { grid-template-columns: 1fr; }
    .hero-search button, .search-box button { min-height: 44px; }
    .hero__rail { width: calc(100% - 16px); margin-top: -24px; }
    .content-band { padding-block: 60px; }
    .section-heading h2, .split-stage__intro h2, .discover-panel__copy h2, .guide-grid h2, .brand-strip h2, .brand-facts h2, .brand-flow h2, .identity-section h2, .entry-detail h2, .entry-next h2, .detail-body h2, .watch-note h2 { font-size: 30px; }
    .media-grid--six, .media-grid--catalog, .media-grid--four { grid-template-columns: 1fr 1fr; gap: 12px; }
    .media-card__body { padding-top: 9px; }
    .media-card h3 { font-size: 14px; }
    .media-card p { font-size: 11px; -webkit-line-clamp: 2; }
    .media-card__meta { display: none; }
    .stack-card { grid-template-columns: 104px 1fr; gap: 12px; }
    .stack-card img { width: 104px; height: 88px; }
    .stack-card h3 { font-size: 17px; }
    .stack-card p:not(.micro-meta) { display: none; }
    .poster-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-grid__items { grid-template-columns: 1fr; }
    .guide-grid__items article { min-height: 0; }
    .page-hero__inner { padding-block: 34px 44px; }
    .page-hero__inner img { max-height: 240px; }
    .filter-shell { padding-block: 26px 62px; }
    .type-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 5px; margin-right: -12px; }
    .type-tabs a { flex: 0 0 auto; }
    .result-line { align-items: flex-end; }
    .watch-note { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
    .fact-grid { grid-template-columns: 1fr; }
    .fact-grid article { min-height: 0; }
    .fact-grid p { margin-top: 20px; }
    .identity-section, .brand-flow, .entry-next { padding-block: 62px; }
    .entry-actions { grid-template-columns: 1fr; }
    .entry-next__grid { grid-template-columns: 1fr; }
    .entry-next__grid a { min-height: 120px; }
    .search-hero { padding-block: 42px; }
    .search-results { padding-block: 36px 62px; }
    .detail-hero { padding-block: 40px; gap: 28px; }
    .detail-hero__poster img { max-height: 360px; }
    .detail-lead { font-size: 15px; }
    .related-section { padding-block: 56px; }
    .not-found { min-height: 0; padding-block: 52px; gap: 30px; }
    .site-footer { padding-top: 44px; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .site-footer__note { grid-column: auto; }
}

@media (max-width: 380px) {
    .media-grid--six, .media-grid--catalog, .media-grid--four, .poster-row { grid-template-columns: 1fr; }
    .hero__rail { grid-template-columns: 1fr; }
    .hero__rail a { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
    .hero__rail a:last-child { border-bottom: 0; }
    .brand-strip__links { grid-template-columns: 1fr; }
}

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

@media print {
    .site-header, .site-footer, .nav-toggle, .header-search, .hero-search, .hero__actions, .type-tabs, .detail-actions, .button { display: none !important; }
    body { background: white; color: black; }
    .shell { width: 100%; }
    main { overflow: visible; }
    a { color: black; text-decoration: underline; }
    img { max-width: 480px; }
}
