/* ==========================================================================
   Mùa đông Hà Nội — style.css
   Tokens + base + component dùng chung (landing & mọi trang).
   Mục lục: 1 Tokens · 2 Base · 3 Layout · 4 Typography · 5 Buttons/Chips ·
   6 Header · 7 Drawer · 8 Footer · 9 Hero · 10 Cards/Grid · 11 Sections ·
   12 Weather · 13 Player · 14 Gallery/Lightbox · 15 Forms · 16 Overlays · 17 Motion
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
	--c-bg: #FFFFFF;
	--c-tint: #F4F7FA;
	--c-tint2: #EAF0F6;
	--c-line: #DCE5EE;
	--c-ink: #14212E;
	--c-muted: #52657A;
	--c-primary: #2F6FA7;
	--c-primary-d: #1E4E7C;
	--c-deep: #0F2F4F;
	--c-ice: #8EC5E8;
	--c-frost: #CFE8F7;
	--c-amber: #F0A53A;
	--c-amber-d: #C97A12;
	--c-amber-text: #8A5200;
	--c-amber-soft: #FDF1DC;
	--c-link: #1E4E7C;
	--c-card: #FFFFFF;
	--c-on-primary: #FFFFFF;
	--c-glass: rgba(255, 255, 255, .72);
	--c-scrim: rgba(15, 47, 79, .45);
	--c-danger: #B3261E;
	--c-ok: #1B6B45;
	--c-ok-soft: #E3F4EA;
	--c-err-soft: #FBE8E6;
	--c-info-soft: #E5F1FA;
	--c-hl: rgba(240, 165, 58, .38);
	--g-primary: linear-gradient(135deg, #8EC5E8, #2F6FA7 55%, #1E4E7C);
	--g-btn: linear-gradient(135deg, #2F6FA7, #1E4E7C);
	--g-dawn: linear-gradient(160deg, #EAF0F6 0%, #CFE8F7 55%, #FBE9CC 100%);
	--g-deep: linear-gradient(160deg, #0F2F4F 0%, #1E4E7C 100%);

	--r1: 12px;
	--r2: 20px;
	--r3: 32px;
	--rp: 999px;
	--sh1: 0 1px 2px rgba(15, 47, 79, .06), 0 4px 14px rgba(15, 47, 79, .06);
	--sh2: 0 2px 6px rgba(15, 47, 79, .08), 0 14px 32px rgba(15, 47, 79, .10);
	--sh3: 0 6px 14px rgba(15, 47, 79, .10), 0 28px 60px rgba(15, 47, 79, .16);
	--ease: cubic-bezier(.22, .8, .3, 1);
	--header-h: 72px;
	--bar-h: 0px;
	--gutter: 20px;
	--maxw: 1200px;

	--f-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--f-sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--f-script: 'Great Vibes', 'Brush Script MT', cursive;

	/* minh hoạ SVG (có biến thể tối trong dark.css) */
	--ill-sky1: #CFE8F7;
	--ill-sky2: #F4F7FA;
	--ill-mist: #FFFFFF;
	--ill-snow: #FFFFFF;
	--ill-b1: #5C7B99;
	--ill-b2: #7A9BB8;
	--ill-roof: #2B4A68;
	--ill-roof2: #3C607F;
	--ill-door: #1E3A55;
	--ill-ground: #DCE5EE;
	--ill-water: #9CC6E4;
	--ill-flame: #C97A12;
	--ill-paper: #FFFDF6;
	--ill-flower: #F6F1D9;
	--ill-leaf: #6B9E86;
	--ill-night: #14212E;
	--ill-ground2: #0B1520;
	--ill-line: #FFFFFF;
	--ill-line2: #C5D3E0;
	--ill-snowflake: #8EC5E8;
	--ill-wave: #8EC5E8;
	--ill-blob1: #CFE8F7;
	--ill-blob2: #8EC5E8;
	--ill-blob3: #FBE9CC;
}

@media (min-width: 680px) { :root { --gutter: 28px; } }
@media (min-width: 960px) { :root { --header-h: 76px; --gutter: 32px; } }
@media (max-width: 959px) { :root { --header-h: 64px; --bar-h: 64px; } }

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); color-scheme: light dark; }
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body {
	margin: 0;
	font-family: var(--f-sans);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--c-ink);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
	padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
img, svg, video, canvas, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--c-link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-primary); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
:focus-visible { outline: 3px solid var(--c-amber); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--c-hl); }
[hidden] { display: none !important; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.mdhn-skip { position: fixed; left: 12px; top: -80px; z-index: 200; padding: 12px 18px; border-radius: var(--rp); background: var(--c-deep); color: #fff; text-decoration: none; transition: top .2s var(--ease); }
.mdhn-skip:focus { top: 12px; }
.mdhn-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mdhn-i { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }
.mdhn-svg { display: block; width: 100%; height: 100%; }
.mdhn-main { display: block; outline: none; }

/* ---------- 3. LAYOUT ---------- */
.mdhn-wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.mdhn-wrap--narrow { max-width: calc(820px + var(--gutter) * 2); }
.mdhn-section { position: relative; padding-block: clamp(56px, 8vw, 112px); }
.mdhn-section--flush { padding-top: clamp(24px, 4vw, 48px); }
.mdhn-section--tint { background: var(--c-tint); }
.mdhn-section--deep { background: var(--g-deep); color: #E8F0F7; --c-ink: #E8F0F7; --c-muted: #B9CADB; --c-link: #CFE8F7; }
.mdhn-section--night { background: var(--ill-night); color: #E8F0F7; --c-ink: #E8F0F7; --c-muted: #B9CADB; --c-link: #CFE8F7; --c-card: #172a3d; --c-line: #2a4259; }
.mdhn-section--night .mdhn-card, .mdhn-section--night .mdhn-card__title a { color: #E8F0F7; }
.mdhn-section__head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.mdhn-section__desc { margin-top: 14px; color: var(--c-muted); font-size: 1.0625rem; }
.mdhn-section__more { margin-top: clamp(28px, 4vw, 44px); text-align: center; }
.mdhn-demo-note { text-align: center; margin: 0 0 22px; }
.mdhn-grid { display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: 1fr; }
@media (min-width: 680px) { .mdhn-grid--2, .mdhn-grid--3, .mdhn-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .mdhn-grid--3 { grid-template-columns: repeat(3, 1fr); } .mdhn-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.mdhn-mt { margin-top: 40px; }

/* ---------- 4. TYPOGRAPHY ---------- */
.mdhn-h1, .mdhn-h2, .mdhn-h3, .mdhn-h4 { font-family: var(--f-serif); font-weight: 600; line-height: 1.15; color: var(--c-deep); letter-spacing: -.01em; text-wrap: balance; }
.mdhn-h1 { font-size: clamp(2.25rem, 5.4vw, 4rem); }
.mdhn-h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
.mdhn-h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); }
.mdhn-h4 { font-size: 1.25rem; }
.mdhn-section--deep .mdhn-h2, .mdhn-section--night .mdhn-h2, .mdhn-section--deep .mdhn-h3, .mdhn-section--night .mdhn-h3 { color: #fff; }
/* từ khoá nhấn: <em> italic có gạch nền highlight bo tròn */
.mdhn-h1 em, .mdhn-h2 em { font-style: italic; position: relative; z-index: 0; white-space: nowrap; color: inherit; }
.mdhn-h1 em::after, .mdhn-h2 em::after { content: ''; position: absolute; left: -.06em; right: -.06em; bottom: .06em; height: .36em; z-index: -1; border-radius: var(--rp); background: var(--c-hl); transform-origin: left; }
.mdhn-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; margin-bottom: 18px; border-radius: var(--rp); background: var(--c-tint2); color: var(--c-primary-d); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; }
.mdhn-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c-amber); }
.mdhn-section--deep .mdhn-eyebrow, .mdhn-section--night .mdhn-eyebrow { background: rgba(255, 255, 255, .1); color: #CFE8F7; }
.mdhn-script { font-family: var(--f-script); font-weight: 400; line-height: 1.35; }
.mdhn-link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.mdhn-link-arrow .mdhn-i { transition: transform .25s var(--ease); }
.mdhn-link-arrow:hover .mdhn-i { transform: translateX(4px); }
.mdhn-badge-demo { position: absolute; right: 10px; bottom: 10px; z-index: 3; padding: 3px 10px; border-radius: var(--rp); background: rgba(15, 47, 79, .78); color: #fff; font-size: .6875rem; font-weight: 600; letter-spacing: .03em; line-height: 1.5; backdrop-filter: blur(4px); pointer-events: none; }
.mdhn-badge-demo--inline { position: static; display: inline-block; background: var(--c-amber-soft); color: var(--c-amber-text); border: 1px dashed var(--c-amber); backdrop-filter: none; }

/* ---------- 5. BUTTONS / CHIPS / ICONBTN ---------- */
.mdhn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 26px; border: 1.5px solid transparent; border-radius: var(--rp); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s; position: relative; }
.mdhn-btn:hover { transform: translateY(-2px); }
.mdhn-btn:active { transform: translateY(0) scale(.98); }
.mdhn-btn--primary { background: var(--g-btn); color: var(--c-on-primary); box-shadow: 0 6px 18px rgba(30, 78, 124, .28); }
.mdhn-btn--primary:hover { color: var(--c-on-primary); box-shadow: 0 10px 26px rgba(30, 78, 124, .36); }
.mdhn-btn--ghost { background: transparent; color: var(--c-primary-d); border-color: var(--c-line); background-color: var(--c-card); }
.mdhn-btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary-d); box-shadow: var(--sh1); }
.mdhn-btn--amber { background: var(--c-amber); color: #14212E; box-shadow: 0 6px 18px rgba(240, 165, 58, .38); }
.mdhn-btn--amber:hover { background: #F5B556; color: #14212E; }
.mdhn-btn--danger { background: var(--c-danger); color: #fff; }
.mdhn-btn--danger:hover { color: #fff; filter: brightness(1.08); }
.mdhn-btn--sm { min-height: 40px; padding: 8px 18px; font-size: .9375rem; }
.mdhn-btn--lg { min-height: 56px; padding: 14px 32px; font-size: 1.0625rem; }
.mdhn-btn--block { width: 100%; }
.mdhn-btn[disabled], .mdhn-btn.is-loading { opacity: .65; pointer-events: none; }
.mdhn-btn.is-loading::after { content: ''; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: mdhn-spin .7s linear infinite; }
@keyframes mdhn-spin { to { transform: rotate(360deg); } }

.mdhn-iconbtn { position: relative; display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 1.5px solid transparent; border-radius: 50%; background: transparent; color: var(--c-ink); transition: background-color .2s, color .2s, transform .25s var(--ease), border-color .2s; text-decoration: none; }
.mdhn-iconbtn:hover { background: var(--c-tint2); color: var(--c-primary-d); transform: translateY(-1px); }
.mdhn-iconbtn:active { transform: scale(.92); }
.mdhn-iconbtn.is-on { color: var(--c-amber-d); }
.mdhn-iconbtn.is-on .mdhn-i { fill: currentColor; }
.mdhn-iconbtn__n { position: absolute; right: 2px; bottom: 6px; font-size: .625rem; font-weight: 700; }

.mdhn-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--rp); background: var(--c-tint2); color: var(--c-primary-d); font-size: .8125rem; font-weight: 600; line-height: 1.5; text-decoration: none; transition: background-color .2s, color .2s; }
a.mdhn-chip:hover { background: var(--c-frost); color: var(--c-deep); }
.mdhn-chip--amber { background: var(--c-amber-soft); color: var(--c-amber-text); }
a.mdhn-chip--amber:hover { background: #FBE2B5; color: var(--c-amber-text); }
.mdhn-chip .mdhn-i { width: 1em; height: 1em; }
.mdhn-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.mdhn-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 18px; border: 1.5px solid var(--c-line); border-radius: var(--rp); background: var(--c-card); color: var(--c-ink); font-size: .9375rem; font-weight: 500; text-decoration: none; transition: all .2s var(--ease); }
.mdhn-pill small { color: var(--c-muted); font-size: .75rem; }
.mdhn-pill:hover { border-color: var(--c-primary); color: var(--c-primary-d); transform: translateY(-1px); }
.mdhn-pill.is-active, .mdhn-pill[aria-pressed="true"] { background: var(--g-btn); border-color: transparent; color: var(--c-on-primary); }
.mdhn-pill.is-active small { color: inherit; opacity: .8; }
.mdhn-tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.mdhn-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: var(--rp); background: var(--c-tint); border: 1px solid var(--c-line); color: var(--c-ink); font-size: .9rem; text-decoration: none; transition: all .2s var(--ease); }
.mdhn-tag small { color: var(--c-muted); }
.mdhn-tag:hover { background: var(--c-frost); border-color: var(--c-ice); color: var(--c-deep); transform: translateY(-1px); }
.mdhn-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--c-tint2); flex: none; }
.mdhn-avatar--lg { width: 72px; height: 72px; }
.mdhn-avatar--xl { width: 112px; height: 112px; border: 4px solid var(--c-card); box-shadow: var(--sh2); }
.mdhn-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; color: var(--c-muted); font-size: .875rem; line-height: 1.5; }
.mdhn-meta li { display: inline-flex; align-items: center; gap: 6px; }
.mdhn-meta a { color: inherit; }
.mdhn-glass { background: var(--c-glass); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .55); border-radius: var(--r3); box-shadow: var(--sh2); }

/* ---------- 6. HEADER ---------- */
.mdhn-header { position: sticky; top: 0; z-index: 60; height: var(--header-h); border-bottom: 1px solid transparent; transition: transform .35s var(--ease), background-color .3s, border-color .3s, box-shadow .3s, backdrop-filter .3s; }
.mdhn-header.is-scrolled { background: var(--c-glass); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); border-bottom-color: var(--c-line); box-shadow: 0 6px 24px rgba(15, 47, 79, .06); }
.mdhn-header.is-hidden { transform: translateY(-100%); }
.mdhn-header__inner { display: flex; align-items: center; gap: 20px; height: 100%; }
.mdhn-main > .mdhn-hero:first-child, .mdhn-main > .mdhn-pagehero:first-child, .mdhn-main > .mdhn-notfound:first-child { margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h); }
.mdhn-main > :first-child { scroll-margin-top: 0; }
body.admin-bar .mdhn-header { top: 32px; }

.mdhn-brand { flex: none; min-width: 0; }
.mdhn-brand__link { display: inline-flex; align-items: center; gap: 12px; color: var(--c-deep); text-decoration: none; }
.mdhn-brand__mark { display: grid; place-items: center; width: 44px; height: 44px; color: var(--c-primary); transition: transform .5s var(--ease); }
.mdhn-brand__link:hover .mdhn-brand__mark { transform: rotate(60deg); }
.mdhn-brand__img { max-height: 48px; width: auto; }
.mdhn-brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.mdhn-brand__name { font-family: var(--f-serif); font-weight: 600; font-size: 1.1875rem; color: var(--c-deep); white-space: nowrap; }
.mdhn-brand__slogan { font-size: .75rem; color: var(--c-muted); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
@media (max-width: 480px) { .mdhn-brand__slogan { display: none; } .mdhn-brand__name { font-size: 1.0625rem; } }

.mdhn-nav { display: none; flex: 1; justify-content: center; }
.mdhn-menu { display: flex; align-items: center; gap: 4px; }
.mdhn-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--rp); color: var(--c-ink); font-weight: 500; font-size: .96875rem; text-decoration: none; transition: background-color .2s, color .2s; }
.mdhn-menu a:hover, .mdhn-menu .current-menu-item > a, .mdhn-menu a[aria-current="page"] { background: var(--c-tint2); color: var(--c-primary-d); }
.mdhn-menu li { position: relative; }
.mdhn-menu .sub-menu { position: absolute; left: 0; top: 100%; min-width: 220px; padding: 8px; border-radius: var(--r1); background: var(--c-card); border: 1px solid var(--c-line); box-shadow: var(--sh2); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s var(--ease); z-index: 5; }
.mdhn-menu li:hover > .sub-menu, .mdhn-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.mdhn-menu .sub-menu a { display: flex; border-radius: 8px; }
@media (min-width: 960px) { .mdhn-nav { display: flex; } .mdhn-menu-toggle { display: none !important; } }
.mdhn-header__tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.mdhn-header__auth { display: none; gap: 8px; margin-left: 6px; }
@media (min-width: 960px) { .mdhn-header__auth { display: flex; } }

.mdhn-themebtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; border-radius: var(--rp); width: auto; }
.mdhn-themebtn__i { display: inline-grid; }
.mdhn-themebtn__l { display: none; font-size: .8125rem; font-weight: 600; }
@media (min-width: 1100px) { .mdhn-header__tools .mdhn-themebtn { border-color: var(--c-line); } .mdhn-header__tools .mdhn-themebtn__l { display: inline; } }
.mdhn-themebtn.mdhn-btn { padding: 10px 20px; }

.mdhn-account { position: relative; }
.mdhn-account__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 2px solid var(--c-line); border-radius: 50%; background: none; overflow: hidden; transition: border-color .2s; }
.mdhn-account__btn:hover, .mdhn-account__btn[aria-expanded="true"] { border-color: var(--c-primary); }
.mdhn-account__btn .mdhn-avatar { width: 100%; height: 100%; }
.mdhn-account__menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 8px; border-radius: var(--r1); background: var(--c-card); border: 1px solid var(--c-line); box-shadow: var(--sh3); z-index: 70; animation: mdhn-pop .22s var(--ease); }
@keyframes mdhn-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.mdhn-account__name { padding: 8px 12px 10px; font-weight: 600; border-bottom: 1px solid var(--c-line); margin-bottom: 6px; color: var(--c-deep); }
.mdhn-account__menu a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 8px; color: var(--c-ink); text-decoration: none; }
.mdhn-account__menu a:hover { background: var(--c-tint2); }

.mdhn-progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--c-ice), var(--c-primary), var(--c-amber)); will-change: transform; opacity: 0; }
.mdhn-progress.is-on { opacity: 1; }

/* ---------- 7. DRAWER (menu mobile) ---------- */
.mdhn-drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.mdhn-drawer.is-open { visibility: visible; }
.mdhn-drawer__scrim { position: absolute; inset: 0; background: var(--c-scrim); opacity: 0; transition: opacity .3s; backdrop-filter: blur(3px); }
.mdhn-drawer.is-open .mdhn-drawer__scrim { opacity: 1; }
.mdhn-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(92vw, 400px); display: flex; flex-direction: column; background: var(--c-bg); box-shadow: var(--sh3); transform: translateX(100%); transition: transform .38s var(--ease); z-index: 2; padding-bottom: env(safe-area-inset-bottom); overscroll-behavior: contain; }
.mdhn-drawer.is-open .mdhn-drawer__panel { transform: none; }
.mdhn-drawer__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--c-line); }
.mdhn-drawer__nav { flex: 1; overflow-y: auto; padding: 14px 14px; }
.mdhn-menu--drawer { flex-direction: column; align-items: stretch; gap: 2px; }
.mdhn-menu--drawer a { min-height: 52px; padding: 12px 18px; font-size: 1.125rem; font-family: var(--f-serif); border-radius: var(--r1); }
.mdhn-menu--drawer .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; background: none; }
.mdhn-drawer__foot { display: grid; gap: 10px; padding: 16px 18px 20px; border-top: 1px solid var(--c-line); }
body.mdhn-lock { overflow: hidden; touch-action: none; }

/* ---------- 8. FOOTER ---------- */
.mdhn-footer { background: var(--c-deep); color: #C9D8E6; margin-top: 0; --c-link: #CFE8F7; }
.mdhn-footer a { color: #E8F0F7; text-decoration: none; }
.mdhn-footer a:hover { color: var(--c-amber); text-decoration: underline; }
.mdhn-footer__grid { display: grid; gap: 36px; padding-block: clamp(48px, 6vw, 80px) 40px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .mdhn-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .mdhn-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.mdhn-footer .mdhn-brand__link, .mdhn-footer .mdhn-brand__name { color: #fff; }
.mdhn-footer .mdhn-brand__mark { color: var(--c-ice); }
.mdhn-footer .mdhn-brand__slogan { color: #9FB3C6; }
.mdhn-footer__about { margin: 16px 0; max-width: 36ch; font-size: .96875rem; }
.mdhn-footer__title { margin-bottom: 14px; font-family: var(--f-serif); font-size: 1.125rem; font-weight: 600; color: #fff; }
.mdhn-footer__list { display: grid; gap: 6px; }
.mdhn-footer__list a { display: inline-flex; align-items: center; min-height: 32px; }
.mdhn-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.mdhn-footer__contact .mdhn-i { margin-top: .3em; color: var(--c-ice); }
.mdhn-social { display: flex; flex-wrap: wrap; gap: 8px; }
.mdhn-footer .mdhn-iconbtn { border-color: rgba(255, 255, 255, .22); color: #fff; }
.mdhn-footer .mdhn-iconbtn:hover { background: rgba(255, 255, 255, .12); color: var(--c-amber); }
.mdhn-footer__bar { border-top: 1px solid rgba(255, 255, 255, .12); }
.mdhn-footer__barin { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 18px; font-size: .875rem; }
.mdhn-footer__menu { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.mdhn-widget { margin-bottom: 28px; }
.mdhn-widget ul { display: grid; gap: 6px; }
.mdhn-widget__title { margin-bottom: 14px; font-family: var(--f-serif); font-size: 1.1875rem; font-weight: 600; color: var(--c-deep); }
.mdhn-mini-list { display: grid; gap: 4px; }
.mdhn-mini-list a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: var(--r1); color: var(--c-ink); text-decoration: none; line-height: 1.45; transition: background-color .2s; }
.mdhn-mini-list a:hover { background: var(--c-tint2); }
.mdhn-mini-list .mdhn-i { margin-top: .2em; color: var(--c-primary); }
.mdhn-mini-list--center { justify-items: center; }

/* ---------- 9. HERO ---------- */
.mdhn-hero { position: relative; isolation: isolate; overflow: clip; min-height: min(100svh, 920px); display: flex; align-items: center; background: var(--g-dawn); padding-block: calc(var(--header-h) + 24px) 72px; }
.mdhn-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.mdhn-hero__glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .7; will-change: transform; }
.mdhn-hero__glow--a { width: 46vw; max-width: 620px; aspect-ratio: 1; right: -8vw; top: -6vw; background: radial-gradient(circle, #FBE9CC, transparent 68%); }
.mdhn-hero__glow--b { width: 40vw; max-width: 520px; aspect-ratio: 1; left: -10vw; bottom: -8vw; background: radial-gradient(circle, #8EC5E8, transparent 68%); opacity: .5; }
.mdhn-snow { position: absolute; inset: 0; width: 100%; height: 100%; }
.mdhn-hero__inner { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .mdhn-hero__inner { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.mdhn-hero__title { margin-bottom: 22px; }
.mdhn-hero__desc { max-width: 52ch; font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); color: var(--c-muted); margin-bottom: 32px; }
.mdhn-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mdhn-snowtoggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 8px 14px; min-height: 40px; border: 1px dashed var(--c-line); border-radius: var(--rp); background: transparent; color: var(--c-muted); font-size: .875rem; transition: all .2s; }
.mdhn-snowtoggle:hover { border-color: var(--c-primary); color: var(--c-primary-d); }
.mdhn-snowtoggle[aria-pressed="false"] { opacity: .8; }

.mdhn-hero__visual { position: relative; justify-self: center; width: min(86vw, 460px); aspect-ratio: 4 / 5; }
@media (min-width: 960px) { .mdhn-hero__visual { width: min(100%, 480px); justify-self: end; } }
.mdhn-blob { position: absolute; inset: -12% -14% -8% -10%; z-index: 0; opacity: .95; will-change: transform; transform: translate3d(var(--px, 0), var(--py, 0), 0); }
.mdhn-arch { position: absolute; inset: 0; z-index: 1; overflow: hidden; border-radius: 999px 999px var(--r3) var(--r3); border: 8px solid #fff; box-shadow: var(--sh3); background: var(--c-tint2); transform: translate3d(var(--px, 0), var(--py, 0), 0); will-change: transform; }
.mdhn-arch__img, .mdhn-arch .mdhn-illus { width: 100%; height: 100%; object-fit: cover; }
.mdhn-illus { position: relative; display: block; overflow: hidden; width: 100%; height: 100%; background: var(--ill-sky1); }
.mdhn-hero__second { position: absolute; z-index: 2; left: -8%; bottom: 6%; width: 38%; aspect-ratio: 1; overflow: hidden; border-radius: var(--r2); border: 5px solid #fff; box-shadow: var(--sh2); transform: translate3d(var(--px, 0), var(--py, 0), 0); will-change: transform; }
.mdhn-hero__second-img { width: 100%; height: 100%; object-fit: cover; }
.mdhn-floatchip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: var(--rp); background: var(--c-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .6); box-shadow: var(--sh2); color: var(--c-ink); line-height: 1.2; }
.mdhn-floatchip small { display: block; font-size: .6875rem; color: var(--c-muted); }
.mdhn-floatchip b { font-family: var(--f-serif); font-size: 1.375rem; color: var(--c-deep); }
.mdhn-floatchip .mdhn-i { width: 1.6em; height: 1.6em; color: var(--c-amber-d); }
.mdhn-floatchip--temp { right: -2%; top: 12%; animation: mdhn-float 6s ease-in-out infinite; }
.mdhn-floatchip--mood { left: 4%; top: 4%; font-size: .875rem; font-weight: 600; animation: mdhn-float 7s ease-in-out -2s infinite; }
@keyframes mdhn-float { 50% { transform: translateY(-10px); } }
.mdhn-hero__scroll { position: absolute; left: 50%; bottom: 18px; width: 44px; height: 44px; display: none; place-items: center; margin-left: -22px; color: var(--c-muted); border-radius: 50%; animation: mdhn-bob 2.4s ease-in-out infinite; }
@media (min-width: 960px) and (min-height: 700px) { .mdhn-hero__scroll { display: grid; } }
@keyframes mdhn-bob { 50% { transform: translateY(6px); } }

/* ---------- 10. CARDS ---------- */
.mdhn-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r2); background: var(--c-card); border: 1px solid var(--c-line); box-shadow: var(--sh1); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.mdhn-card::after { content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.mdhn-card:hover { transform: translateY(-6px); box-shadow: var(--sh3); border-color: var(--c-ice); }
.mdhn-card:hover::after { transform: translateX(120%); }
.mdhn-card__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-tint2); }
.mdhn-card__media .mdhn-img, .mdhn-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mdhn-card:hover .mdhn-card__media img, .mdhn-card:hover .mdhn-card__media .mdhn-svg { transform: scale(1.05); }
.mdhn-card__media .mdhn-svg { transition: transform .8s var(--ease); }
.mdhn-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.mdhn-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mdhn-card__place { display: inline-flex; align-items: center; gap: 4px; font-size: .8125rem; color: var(--c-muted); }
.mdhn-card__title { font-family: var(--f-serif); font-weight: 600; font-size: 1.3125rem; line-height: 1.3; }
.mdhn-card__title a { color: var(--c-deep); text-decoration: none; }
.mdhn-card__title a::after { content: ''; position: absolute; inset: 0; z-index: 3; }
.mdhn-card__top a, .mdhn-card__top button { position: relative; z-index: 5; }
.mdhn-card__excerpt { color: var(--c-muted); font-size: .96875rem; flex: 1; }
.mdhn-card .mdhn-meta { margin-top: auto; padding-top: 6px; }
.mdhn-playdisc { position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--c-primary-d); box-shadow: var(--sh2); transition: transform .35s var(--ease); }
.mdhn-playdisc .mdhn-i { width: 26px; height: 26px; }
.mdhn-playdisc--amber { background: var(--c-amber); color: #14212E; }
.mdhn-card:hover .mdhn-playdisc { transform: scale(1.12); }
.mdhn-duration { position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 2px 10px; border-radius: var(--rp); background: rgba(15, 47, 79, .8); color: #fff; font-size: .75rem; font-weight: 600; }
.mdhn-card__media--video .mdhn-badge-demo { left: 10px; right: auto; }

.mdhn-bento { display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: 1fr; }
@media (min-width: 960px) { .mdhn-bento { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; } .mdhn-bento__item--0 { grid-row: span 2; } .mdhn-bento__item--0 .mdhn-card__media { aspect-ratio: 16 / 11; } .mdhn-bento__item--0 .mdhn-card__title { font-size: 1.75rem; } }
.mdhn-bento__item, .mdhn-bento__item .mdhn-card { height: 100%; }
.mdhn-hscroll { display: flex; gap: 20px; margin: 32px calc(var(--gutter) * -1) 0; padding: 8px var(--gutter) 20px; overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.mdhn-hscroll__item { flex: 0 0 min(80vw, 340px); scroll-snap-align: start; }
.mdhn-hscroll__item .mdhn-card { height: 100%; }

/* ---------- 11. SECTIONS ---------- */
.mdhn-memory { overflow: clip; background: var(--g-dawn); }
.mdhn-memory__art { position: absolute; inset: 0; opacity: .35; }
.mdhn-memory__card { position: relative; padding: clamp(28px, 5vw, 56px); text-align: center; }
.mdhn-memory__card .mdhn-script { font-size: clamp(1.625rem, 3.2vw, 2.25rem); color: var(--c-deep); margin: 8px 0 20px; }
.mdhn-memory__card figcaption { margin-bottom: 18px; color: var(--c-muted); font-weight: 600; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; }
.mdhn-radiosec { overflow: clip; }
.mdhn-radiosec__wave { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; opacity: .22; pointer-events: none; }
.mdhn-radiosec > .mdhn-wrap { position: relative; }
.mdhn-stats__grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .mdhn-stats__grid { grid-template-columns: repeat(3, 1fr); } }
.mdhn-stat { padding: 32px 24px; text-align: center; border-radius: var(--r2); background: var(--c-card); border: 1px solid var(--c-line); box-shadow: var(--sh1); }
.mdhn-stat__num { font-family: var(--f-serif); font-weight: 600; font-size: clamp(3rem, 7vw, 4.5rem); line-height: 1; color: var(--c-primary-d); font-variant-numeric: tabular-nums; }
.mdhn-stat__num small { font-size: .45em; margin-left: 4px; color: var(--c-amber-d); }
.mdhn-stat__label { margin-top: 12px; color: var(--c-muted); font-size: .96875rem; }
.mdhn-community { display: grid; gap: 36px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: var(--r3); background: var(--c-card); border: 1px solid var(--c-line); box-shadow: var(--sh2); }
@media (min-width: 860px) { .mdhn-community { grid-template-columns: 1.2fr 1fr; } }
.mdhn-community__copy > p { margin: 14px 0 26px; color: var(--c-muted); }
.mdhn-community__perks { display: grid; gap: 12px; }
.mdhn-community__perks li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r1); background: var(--c-tint); font-weight: 500; }
.mdhn-community__perks .mdhn-i { width: 1.5em; height: 1.5em; color: var(--c-primary); }
.mdhn-newsletter { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 56px); text-align: center; }
.mdhn-newsletter > p { margin: 12px auto 24px; max-width: 46ch; color: var(--c-muted); }
.mdhn-newsletter__art { position: absolute; right: -30px; top: -30px; width: 150px; height: 150px; opacity: .25; animation: mdhn-spin 60s linear infinite; }
.mdhn-accordion { display: grid; gap: 12px; }
.mdhn-acc { border-radius: var(--r1); background: var(--c-card); border: 1px solid var(--c-line); transition: border-color .25s, box-shadow .25s; }
.mdhn-acc:has(.mdhn-acc__btn[aria-expanded="true"]) { border-color: var(--c-ice); box-shadow: var(--sh1); }
.mdhn-acc__h { font: inherit; }
.mdhn-acc__btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 60px; padding: 16px 22px; border: 0; background: none; text-align: left; font-family: var(--f-serif); font-weight: 600; font-size: 1.125rem; color: var(--c-deep); border-radius: var(--r1); }
.mdhn-acc__btn .mdhn-i { transition: transform .3s var(--ease); color: var(--c-primary); }
.mdhn-acc__btn[aria-expanded="true"] .mdhn-i { transform: rotate(180deg); }
.js .mdhn-acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.js .mdhn-acc__panel > div { overflow: hidden; }
.js .mdhn-acc__btn[aria-expanded="true"] + .mdhn-acc__panel, .js .mdhn-acc__h:has(.mdhn-acc__btn[aria-expanded="true"]) + .mdhn-acc__panel { grid-template-rows: 1fr; }
.mdhn-acc__panel p { padding: 0 22px 20px; color: var(--c-muted); }
.mdhn-cta { overflow: clip; text-align: center; background: var(--g-deep); color: #fff; --c-link: #fff; }
.mdhn-cta__art { position: absolute; inset: 0; opacity: .2; mix-blend-mode: screen; }
.mdhn-cta .mdhn-h2 { color: #fff; }
.mdhn-cta__inner > p { margin: 16px 0 30px; color: #CFE0EE; font-size: 1.125rem; }

/* ---------- 12. WEATHER ---------- */
.mdhn-wx { display: grid; gap: 22px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r3); background: var(--c-card); border: 1px solid var(--c-line); box-shadow: var(--sh2); }
.mdhn-wx--compact { padding: 18px; gap: 14px; border-radius: var(--r2); box-shadow: var(--sh1); }
.mdhn-wx--empty { display: flex; align-items: center; gap: 12px; color: var(--c-muted); }
.mdhn-wx__alert { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border-radius: var(--rp); background: var(--c-amber-soft); border: 1px solid var(--c-amber); color: var(--c-amber-text); font-size: .9375rem; animation: mdhn-pulse 2.8s ease-in-out infinite; }
.mdhn-wx__alert .mdhn-i { color: var(--c-amber-d); }
@keyframes mdhn-pulse { 50% { box-shadow: 0 0 0 6px rgba(240, 165, 58, .18); } }
.mdhn-wx__now { display: grid; gap: 18px; align-items: center; grid-template-columns: auto 1fr; }
.mdhn-wx--compact .mdhn-wx__now { grid-template-columns: auto 1fr; }
@media (min-width: 860px) { .mdhn-wx--strip .mdhn-wx__now, .mdhn-wx--full .mdhn-wx__now { grid-template-columns: auto auto 1fr; gap: 28px; } }
.mdhn-wx__now > .mdhn-wx-icon { width: 84px; height: 84px; color: var(--c-ice); }
.mdhn-wx--compact .mdhn-wx__now > .mdhn-wx-icon { width: 56px; height: 56px; }
.mdhn-wx__city { color: var(--c-muted); font-size: .9375rem; }
.mdhn-wx__temp { font-family: var(--f-serif); font-weight: 600; font-size: clamp(3rem, 7vw, 4.5rem); line-height: 1; color: var(--c-deep); font-variant-numeric: tabular-nums; }
.mdhn-wx--compact .mdhn-wx__temp { font-size: 2.75rem; }
.mdhn-wx__temp sup { font-size: .4em; vertical-align: top; position: relative; top: .3em; margin-left: 2px; color: var(--c-amber-d); }
.mdhn-wx__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; grid-column: 1 / -1; }
@media (min-width: 860px) { .mdhn-wx--strip .mdhn-wx__facts, .mdhn-wx--full .mdhn-wx__facts { grid-column: auto; justify-content: flex-end; } }
.mdhn-wx__facts li { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--c-muted); }
.mdhn-wx__facts b { color: var(--c-ink); }
.mdhn-wx__facts .mdhn-i { color: var(--c-primary); }
.mdhn-wx__days { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .mdhn-wx__days { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) { .mdhn-wx__days { grid-template-columns: repeat(7, 1fr); } }
.mdhn-wx__day { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: var(--r1); background: var(--c-tint); border: 1px solid transparent; text-align: center; transition: transform .3s var(--ease), border-color .3s; }
.mdhn-wx__day:hover { transform: translateY(-4px); border-color: var(--c-ice); }
.mdhn-wx__day.is-cold { background: linear-gradient(180deg, var(--c-frost), var(--c-tint)); }
.mdhn-wx__day:first-child { border-color: var(--c-primary); }
.mdhn-wx__dname { font-size: .8125rem; font-weight: 600; color: var(--c-muted); }
.mdhn-wx__day .mdhn-wx-icon { width: 48px; height: 48px; color: var(--c-ice); }
.mdhn-wx__range b { color: var(--c-deep); font-size: 1.125rem; }
.mdhn-wx__range span { color: var(--c-muted); margin-left: 4px; }
.mdhn-wx__rain { display: inline-flex; align-items: center; gap: 2px; font-size: .75rem; color: var(--c-primary-d); }
.mdhn-wx__rain .mdhn-i { width: .95em; height: .95em; }
.mdhn-wx__advice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: var(--r1); background: var(--c-info-soft); color: var(--c-ink); font-size: .96875rem; }
.mdhn-wx__advice .mdhn-i { color: var(--c-primary); margin-top: .25em; }
.mdhn-wx__src { font-size: .8125rem; color: var(--c-muted); }
.mdhn-wx-icon { display: block; overflow: visible; }
.wx-rays { transform-origin: 32px 32px; animation: mdhn-spin 24s linear infinite; }
.wx-cloud { animation: mdhn-drift 7s ease-in-out infinite; }
.wx-rain path { stroke-dasharray: 6 8; animation: mdhn-rain 1s linear infinite; }
.wx-snow circle { animation: mdhn-fall 2.4s ease-in infinite; }
.wx-snow circle:nth-child(2) { animation-delay: -.8s; } .wx-snow circle:nth-child(3) { animation-delay: -1.6s; }
.wx-fog path { animation: mdhn-drift 5s ease-in-out infinite alternate; }
.wx-moon { animation: mdhn-drift 8s ease-in-out infinite; }
@keyframes mdhn-drift { 50% { transform: translateX(3px); } }
@keyframes mdhn-rain { to { stroke-dashoffset: -14; } }
@keyframes mdhn-fall { 0% { transform: translateY(-4px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }

/* ---------- 13. PLAYER / MINI ---------- */
.mdhn-player { display: grid; gap: 24px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r3); background: var(--c-card); color: var(--c-ink); border: 1px solid var(--c-line); box-shadow: var(--sh3); grid-template-columns: 1fr; }
@media (min-width: 760px) { .mdhn-player { grid-template-columns: 240px 1fr; } .mdhn-player__script { grid-column: 1 / -1; } }
.mdhn-section--deep .mdhn-player { --c-card: #fff; --c-ink: #14212E; --c-muted: #52657A; --c-line: #DCE5EE; --c-link: #1E4E7C; }
.mdhn-player__cover { position: relative; aspect-ratio: 1; border-radius: var(--r2); overflow: hidden; background: var(--c-tint2); }
.mdhn-player__cover > .mdhn-illus, .mdhn-player__img { width: 100%; height: 100%; object-fit: cover; }
.mdhn-player__wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 64px; background: linear-gradient(0deg, rgba(15, 47, 79, .55), transparent); }
.mdhn-player__title { font-family: var(--f-serif); font-weight: 600; font-size: clamp(1.375rem, 2.6vw, 1.875rem); color: var(--c-deep); line-height: 1.25; }
.mdhn-player__host { color: var(--c-muted); font-size: .9375rem; margin-top: 4px; }
.mdhn-player__bar { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; }
.mdhn-player__time { min-width: 3.4em; font-variant-numeric: tabular-nums; font-size: .875rem; color: var(--c-muted); text-align: center; }
.mdhn-player__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.mdhn-player__status { min-height: 1.5em; margin-top: 8px; font-size: .875rem; color: var(--c-primary-d); }
.mdhn-playbtn { position: relative; display: inline-grid; place-items: center; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: var(--c-amber); color: #14212E; box-shadow: 0 8px 22px rgba(240, 165, 58, .45); transition: transform .25s var(--ease); }
.mdhn-playbtn:hover { transform: scale(1.06); }
.mdhn-playbtn:active { transform: scale(.94); }
.mdhn-playbtn .mdhn-i { width: 28px; height: 28px; }
.mdhn-playbtn .i-pause, .mdhn-playbtn[aria-pressed="true"] .i-play { display: none; }
.mdhn-playbtn[aria-pressed="true"] .i-pause { display: block; }
.mdhn-playbtn--sm { width: 44px; height: 44px; box-shadow: none; }
.mdhn-playbtn--sm .mdhn-i { width: 20px; height: 20px; }
.mdhn-range { -webkit-appearance: none; appearance: none; flex: 1; min-width: 80px; height: 28px; background: transparent; cursor: pointer; --p: 0%; }
.mdhn-range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--c-primary) var(--p), var(--c-line) var(--p)); }
.mdhn-range::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--c-primary) var(--p), var(--c-line) var(--p)); }
.mdhn-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: #fff; border: 3px solid var(--c-primary); box-shadow: var(--sh1); }
.mdhn-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--c-primary); }
.mdhn-select { display: inline-flex; align-items: center; gap: 6px; padding-left: 10px; border: 1.5px solid var(--c-line); border-radius: var(--rp); background: var(--c-card); color: var(--c-muted); }
.mdhn-select select { min-height: 40px; padding: 0 12px 0 4px; border: 0; background: transparent; font-size: .875rem; color: var(--c-ink); }
.mdhn-vol { display: inline-flex; align-items: center; gap: 6px; min-width: 120px; flex: 1; max-width: 180px; color: var(--c-muted); }
.mdhn-playlist { margin-top: 20px; display: grid; gap: 4px; border-top: 1px solid var(--c-line); padding-top: 14px; }
.mdhn-playlist__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 12px; border: 0; border-radius: var(--r1); background: transparent; text-align: left; color: var(--c-ink); transition: background-color .2s; }
.mdhn-playlist__item:hover { background: var(--c-tint); }
.mdhn-playlist__item.is-active { background: var(--c-amber-soft); color: var(--c-amber-text); font-weight: 600; }
.mdhn-playlist__n { width: 1.6em; text-align: center; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.mdhn-playlist__t { flex: 1; }
.mdhn-playlist__d { color: var(--c-muted); font-size: .8125rem; }
.mdhn-player__script { border-top: 1px solid var(--c-line); padding-top: 14px; }
.mdhn-player__script summary { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; cursor: pointer; color: var(--c-primary-d); }
.mdhn-player.is-playing .mdhn-player__cover { animation: mdhn-pulse-img 3s ease-in-out infinite; }
@keyframes mdhn-pulse-img { 50% { box-shadow: 0 0 0 10px rgba(240, 165, 58, .2); } }
.mdhn-mini { position: fixed; z-index: 70; left: 50%; bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 12px); display: flex; align-items: center; gap: 12px; width: min(94vw, 640px); padding: 8px 10px 8px 8px; border-radius: var(--rp); background: var(--c-glass); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--c-line); box-shadow: var(--sh3); transform: translateX(-50%); animation: mdhn-rise .4s var(--ease); }
@keyframes mdhn-rise { from { opacity: 0; transform: translate(-50%, 20px); } }
.mdhn-mini__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .9375rem; color: var(--c-deep); text-decoration: none; }
.mdhn-mini__time { font-size: .8125rem; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.mdhn-mini__seek { max-width: 120px; flex: 0 1 120px; }
@media (max-width: 520px) { .mdhn-mini__seek, .mdhn-mini__time { display: none; } }

/* ---------- 14. GALLERY / LIGHTBOX ---------- */
.mdhn-masonry { column-count: 2; column-gap: 14px; }
@media (min-width: 760px) { .mdhn-masonry { column-count: 3; column-gap: 20px; } }
@media (min-width: 1100px) { .mdhn-masonry { column-count: 4; } }
.mdhn-photo { position: relative; break-inside: avoid; margin: 0 0 14px; border-radius: var(--r2); overflow: hidden; background: var(--c-tint2); }
@media (min-width: 760px) { .mdhn-photo { margin-bottom: 20px; } }
.mdhn-photo.is-off { display: none; }
.mdhn-photo__btn { display: block; width: 100%; padding: 0; border: 0; background: none; aspect-ratio: var(--ratio, 4 / 5); overflow: hidden; border-radius: inherit; }
.mdhn-photo__btn img, .mdhn-photo__btn .mdhn-illus { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mdhn-photo:hover .mdhn-photo__btn img, .mdhn-photo:hover .mdhn-svg { transform: scale(1.06); }
.mdhn-photo__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 2px; padding: 36px 14px 12px; background: linear-gradient(0deg, rgba(11, 21, 32, .78), transparent); color: #fff; font-size: .875rem; font-weight: 600; line-height: 1.3; opacity: 0; transform: translateY(8px); transition: all .35s var(--ease); pointer-events: none; }
.mdhn-photo__cap small { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; opacity: .9; }
.mdhn-photo:hover .mdhn-photo__cap, .mdhn-photo:focus-within .mdhn-photo__cap { opacity: 1; transform: none; }
@media (hover: none) { .mdhn-photo__cap { opacity: 1; transform: none; } }
.mdhn-photo .mdhn-badge-demo { top: 8px; bottom: auto; right: 8px; }
.mdhn-empty-filter { padding: 32px; text-align: center; color: var(--c-muted); }
.mdhn-lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(8, 15, 24, .94); color: #fff; }
.mdhn-lightbox::backdrop { background: rgba(8, 15, 24, .9); }
.mdhn-lightbox[open] { display: grid; animation: mdhn-fade .25s; }
@keyframes mdhn-fade { from { opacity: 0; } }
.mdhn-lightbox__inner { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 56px 16px 24px; }
.mdhn-lightbox__fig { display: grid; gap: 12px; max-width: min(1100px, 94vw); max-height: 100%; justify-items: center; }
.mdhn-lightbox__stage { display: grid; place-items: center; max-width: 100%; max-height: calc(100dvh - 160px); }
.mdhn-lightbox__stage img { max-width: 100%; max-height: calc(100dvh - 160px); width: auto; border-radius: var(--r1); object-fit: contain; }
.mdhn-lightbox__stage .mdhn-illus { width: min(86vw, 520px); aspect-ratio: 4 / 5; max-height: calc(100dvh - 160px); border-radius: var(--r2); }
.mdhn-lightbox__cap { text-align: center; color: #DCE7F1; font-size: .9375rem; }
.mdhn-lightbox .mdhn-iconbtn { color: #fff; background: rgba(255, 255, 255, .12); }
.mdhn-lightbox .mdhn-iconbtn:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.mdhn-lightbox__close { position: absolute; right: 14px; top: 14px; z-index: 3; }
.mdhn-lightbox__nav { position: absolute; top: 50%; margin-top: -22px; z-index: 3; }
.mdhn-lightbox__prev { left: 12px; } .mdhn-lightbox__next { right: 12px; }

/* ---------- 15. FORMS ---------- */
.mdhn-form { display: grid; gap: 18px; }
.mdhn-form-card { padding: clamp(22px, 4vw, 40px); border-radius: var(--r3); background: var(--c-card); border: 1px solid var(--c-line); box-shadow: var(--sh2); }
.mdhn-form-card--danger { border-color: #E9B7B3; }
.mdhn-form__grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .mdhn-form__grid { grid-template-columns: 1fr 1fr; } }
.mdhn-form__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: .9375rem; }
.mdhn-form__hint { color: var(--c-muted); font-size: .9375rem; }
.mdhn-form__foot { text-align: center; color: var(--c-muted); font-size: .9375rem; }
.mdhn-field { display: grid; gap: 6px; min-width: 0; }
.mdhn-field label, .mdhn-field > label { font-weight: 600; font-size: .9375rem; color: var(--c-ink); }
.mdhn-req { color: var(--c-danger); }
.mdhn-field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), .mdhn-field textarea, .mdhn-field select { width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--c-line); border-radius: var(--r1); background: var(--c-bg); color: var(--c-ink); font-size: 1rem; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.mdhn-field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.mdhn-field input[type="file"] { padding: 10px; border: 1.5px dashed var(--c-line); border-radius: var(--r1); background: var(--c-tint); }
.mdhn-field input:focus, .mdhn-field textarea:focus, .mdhn-field select:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(47, 111, 167, .18); }
.mdhn-field input[aria-invalid="true"], .mdhn-field textarea[aria-invalid="true"] { border-color: var(--c-danger); }
.mdhn-field small { color: var(--c-muted); font-size: .8125rem; }
.mdhn-field__err { color: var(--c-danger); font-size: .875rem; min-height: 0; }
.mdhn-field__err:empty { display: none; }
.mdhn-form--inline { grid-template-columns: 1fr; align-items: start; }
@media (min-width: 640px) { .mdhn-form--inline:not(.mdhn-form--compact) { grid-template-columns: 1fr auto; max-width: 560px; margin-inline: auto; } .mdhn-form--inline:not(.mdhn-form--compact) .mdhn-btn { margin-top: 0; } .mdhn-form--inline:not(.mdhn-form--compact) .mdhn-form__msg { grid-column: 1 / -1; } }
.mdhn-form--inline .mdhn-btn { min-height: 50px; }
.mdhn-form__msg { min-height: 0; font-size: .9375rem; }
.mdhn-form__msg:not(:empty) { padding: 12px 16px; border-radius: var(--r1); }
.mdhn-form__msg.is-ok { background: var(--c-ok-soft); color: var(--c-ok); }
.mdhn-form__msg.is-err { background: var(--c-err-soft); color: var(--c-danger); }
.mdhn-check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .9375rem; line-height: 1.5; }
.mdhn-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--c-primary); flex: none; }
.mdhn-pw { position: relative; }
.mdhn-pw input { padding-right: 52px !important; }
.mdhn-pw__toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--c-muted); }
.mdhn-pw__toggle:hover { color: var(--c-primary-d); background: var(--c-tint2); }
.mdhn-meter { display: grid; gap: 4px; font-size: .8125rem; color: var(--c-muted); }
.mdhn-meter__bar { display: block; height: 6px; border-radius: 6px; background: var(--c-line); overflow: hidden; }
.mdhn-meter__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c-danger); transition: width .3s var(--ease), background-color .3s; }
.mdhn-meter[data-score="2"] i { background: var(--c-amber-d); } .mdhn-meter[data-score="3"] i { background: var(--c-primary); } .mdhn-meter[data-score="4"] i { background: var(--c-ok); }
.mdhn-or { position: relative; text-align: center; color: var(--c-muted); font-size: .875rem; }
.mdhn-or::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--c-line); }
.mdhn-or span { position: relative; padding: 0 14px; background: var(--c-card); }
.mdhn-google { display: flex; justify-content: center; min-height: 44px; }
.mdhn-captcha { min-height: 65px; }
.mdhn-counter { text-align: right; }
.mdhn-notice { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 20px; border-radius: var(--r1); background: var(--c-info-soft); color: var(--c-ink); font-size: .96875rem; border: 1px solid transparent; }
.mdhn-notice .mdhn-i { margin-top: .2em; }
.mdhn-notice--ok { background: var(--c-ok-soft); color: var(--c-ok); border-color: #B8DEC8; }
.mdhn-notice--err { background: var(--c-err-soft); color: var(--c-danger); border-color: #EBC0BC; }
.mdhn-notice--info { background: var(--c-info-soft); color: var(--c-primary-d); border-color: #BFDDF1; }
.mdhn-inlineform { display: inline-flex; align-items: center; gap: 8px; }
.mdhn-search { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border: 1.5px solid var(--c-line); border-radius: var(--rp); background: var(--c-card); transition: border-color .2s, box-shadow .2s; }
.mdhn-search:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(47, 111, 167, .15); }
.mdhn-search__i { color: var(--c-muted); }
.mdhn-search__input { flex: 1; min-width: 0; min-height: 40px; border: 0; background: none; font-size: 1rem; outline: none; -webkit-appearance: none; }
.mdhn-search__input::-webkit-search-cancel-button { display: none; }
.mdhn-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; padding: 6px; border-radius: var(--r1); background: var(--c-card); border: 1px solid var(--c-line); box-shadow: var(--sh3); text-align: left; }
.mdhn-suggest a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--c-ink); text-decoration: none; }
.mdhn-suggest a:hover, .mdhn-suggest a[aria-selected="true"] { background: var(--c-tint2); }
.mdhn-suggest small { color: var(--c-muted); margin-left: 8px; }

/* ---------- 16. OVERLAYS: bar, cookie, search dialog, toast ---------- */
.mdhn-mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; display: block; padding-bottom: env(safe-area-inset-bottom); background: var(--c-glass); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border-top: 1px solid var(--c-line); }
.mdhn-mobilebar ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.mdhn-mobilebar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; min-height: 64px; padding: 6px 4px; border: 0; background: none; color: var(--c-muted); font-size: .6875rem; font-weight: 600; text-decoration: none; transition: color .2s; }
.mdhn-mobilebar__item .mdhn-i { width: 24px; height: 24px; transition: transform .25s var(--ease); }
.mdhn-mobilebar__item:hover, .mdhn-mobilebar__item.is-current { color: var(--c-primary-d); }
.mdhn-mobilebar__item:active .mdhn-i { transform: scale(.85); }
.mdhn-mobilebar__item.is-current .mdhn-i { color: var(--c-amber-d); }
@media (min-width: 960px) { .mdhn-mobilebar { display: none; } }
.mdhn-cookie { position: fixed; z-index: 80; left: 12px; right: 12px; bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 12px); display: grid; gap: 14px; max-width: 760px; margin-inline: auto; padding: 18px 20px; border-radius: var(--r2); background: var(--c-card); border: 1px solid var(--c-line); box-shadow: var(--sh3); font-size: .9375rem; animation: mdhn-rise2 .4s var(--ease); }
@keyframes mdhn-rise2 { from { opacity: 0; transform: translateY(20px); } }
@media (min-width: 680px) { .mdhn-cookie { grid-template-columns: 1fr auto; align-items: center; } }
.mdhn-cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mdhn-searchdlg { width: min(680px, 94vw); max-width: 94vw; margin: 10vh auto auto; padding: 0; border: 0; border-radius: var(--r3); background: var(--c-bg); color: var(--c-ink); box-shadow: var(--sh3); }
.mdhn-searchdlg::backdrop { background: var(--c-scrim); backdrop-filter: blur(4px); }
.mdhn-searchdlg[open] { animation: mdhn-pop .25s var(--ease); }
.mdhn-searchdlg__inner { padding: 28px 24px 24px; }
.mdhn-searchdlg__close { position: absolute; right: 10px; top: 8px; }
.mdhn-searchdlg .mdhn-search { margin-top: 24px; }
.mdhn-searchdlg__hint { margin: 20px 0 10px; color: var(--c-muted); font-size: .875rem; }
.mdhn-live { position: fixed; z-index: 120; left: 50%; bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 90px); transform: translateX(-50%); max-width: 92vw; pointer-events: none; }
.mdhn-toast { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--rp); background: var(--c-deep); color: #fff; box-shadow: var(--sh3); font-size: .9375rem; animation: mdhn-rise .35s var(--ease); }

/* ---------- 17. MOTION ---------- */
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(20px); animation: mdhn-reveal-fallback .01s 3s forwards; }
[data-reveal] { transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--stagger, 0) * 75ms); }
@keyframes mdhn-reveal-fallback { to { opacity: 1; transform: none; } }
.js [data-split] .w { display: inline-block; opacity: 0; transform: translateY(.45em); animation: mdhn-word .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
@keyframes mdhn-word { to { opacity: 1; transform: none; } }
.js .mdhn-h1 em::after { animation: mdhn-hl 1s .9s var(--ease) both; }
@keyframes mdhn-hl { from { transform: scaleX(0); } }
.mdhn-reduce-snow .mdhn-snow { display: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
	.js [data-reveal]:not(.is-in), .js [data-split] .w { opacity: 1; transform: none; }
	.mdhn-snow, .mdhn-hero__glow, .mdhn-floatchip { animation: none !important; }
	.mdhn-snow { display: none; }
}
@media (prefers-reduced-data: reduce) {
	.mdhn-snow, .mdhn-hero__glow, .mdhn-newsletter__art { display: none; }
	.mdhn-glass, .mdhn-header.is-scrolled, .mdhn-mobilebar, .mdhn-mini { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
