:root {
    --bg-color: #07070a;
    --text-main: #d1d5db;
    --text-muted: #9ca3af;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-y: scroll; scrollbar-gutter: stable; }
html, body { min-height: 100%; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.04), transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(240, 147, 251, 0.04), transparent 30%),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}
input, textarea, [contenteditable], audio {
    user-select: text;
    -webkit-user-select: text;
}
h1, h2, h3, h4, summary { font-family: 'JetBrains Mono', monospace; font-weight: 700; letter-spacing: -0.5px; }
.iridescent-text {
    background: linear-gradient(90deg, #00f2fe, #4facfe, #f093fb, #f5576c);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; color: transparent; display: inline-block;
}
header {
    padding: 0.8rem 5%; display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--glass-border); backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 100; background: rgba(7, 7, 10, 0.85); gap: 1.5rem;
}
.header-left { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.logo-round {
    width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}
.header-brand { display: flex; flex-direction: column; }
.logo { font-size: 1.3rem; font-weight: 700; letter-spacing: 2px; line-height: 1.1; }
.logo span { font-family: 'Inter', sans-serif; font-weight: 300; font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0; }
.dating { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; color: #6b7280; margin-top: 4px; line-height: 1.5; letter-spacing: 0.3px; }
.dating .sep { color: #374151; margin: 0 4px; }
.dating .matrix { color: #00f2fe; opacity: 0.8; }
.header-player {
    display: flex; align-items: center; gap: 0.9rem;
    padding: 0.5rem 1rem;
    background: rgba(20, 20, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}
.hp-play {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, #00f2fe, #f093fb);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #07070a;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}
.hp-play:hover { transform: scale(1.06); box-shadow: 0 0 16px rgba(0, 242, 254, 0.5); }
.hp-play svg { width: 16px; height: 16px; fill: currentColor; }
.hp-info { display: flex; flex-direction: column; min-width: 130px; }
.hp-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem; color: #e5e7eb; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 180px;
}
.hp-sub {
    font-size: 0.6rem; color: #6b7280; letter-spacing: 0.5px;
}
.hp-progress {
    width: 120px; height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px; overflow: hidden;
    cursor: pointer; position: relative;
}
.hp-progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #00f2fe, #f093fb);
    border-radius: 2px;
    transition: width 0.15s ease;
}
.hp-volume {
    display: flex; align-items: center; gap: 0.4rem;
    color: #6b7280;
}
.hp-volume svg { width: 14px; height: 14px; fill: currentColor; }
.hp-volume input {
    width: 60px; height: 4px;
    -webkit-appearance: none; appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px; outline: none; cursor: pointer;
}
.hp-volume input::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 10px; height: 10px; border-radius: 50%;
    background: #00f2fe; cursor: pointer;
}
.hp-volume input::-moz-range-thumb {
    width: 10px; height: 10px; border-radius: 50%;
    background: #00f2fe; cursor: pointer; border: none;
}
.hp-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem; color: #6b7280;
    white-space: nowrap;
}
.hp-audio { display: none; }
.tree-banner {
    width: 100%; height: 420px;
    background: url('../pic/tree.jpg') center/cover no-repeat, linear-gradient(135deg, #0a0a1a 0%, #1a0a2a 50%, #0a1a2a 100%);
    background-blend-mode: overlay; position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); overflow: hidden;
}
.tree-banner::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 140px;
    background: linear-gradient(to top, var(--bg-color), transparent);
    pointer-events: none; z-index: 1;
}
.thesis-overlay {
    position: absolute; top: 30px; right: 40px; bottom: 60px;
    width: 460px; max-width: 42vw; padding: 1.2rem 1.4rem;
    background: rgba(7, 7, 12, 0.65); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(240, 147, 251, 0.2); border-radius: 12px;
    z-index: 5; overflow-y: auto; font-size: 0.75rem; line-height: 1.55;
    color: #d1d5db;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(240, 147, 251, 0.04);
    scrollbar-width: thin; scrollbar-color: rgba(240, 147, 251, 0.3) transparent;
}
.thesis-overlay::-webkit-scrollbar { width: 4px; }
.thesis-overlay::-webkit-scrollbar-thumb { background: rgba(240, 147, 251, 0.3); border-radius: 2px; }
.thesis-overlay p { margin-bottom: 0.6rem; }
.thesis-overlay strong { color: #f093fb; font-weight: 600; }
.thesis-overlay .author {
    display: block; margin-top: 0.8rem; text-align: right;
    color: #f5576c; font-weight: 600; font-size: 0.72rem; letter-spacing: 1px; font-style: normal;
}
.hero { padding: 3rem 5% 1rem; text-align: center; position: relative; z-index: 2; }
.hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.hero p { color: var(--text-muted); font-size: 1rem; margin-bottom: 0.3rem; }
.search-container { max-width: 800px; margin: 0 auto 3rem; padding: 0 5%; position: relative; z-index: 10; }
.search-box {
    width: 100%; padding: 1rem 1.5rem; background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px; color: #fff; font-family: 'Inter', sans-serif; font-size: 1rem;
    outline: none; transition: all 0.3s ease; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.search-box:focus { border-color: #00f2fe; box-shadow: 0 0 20px rgba(0, 242, 254, 0.2); }
.search-box::placeholder { color: #4b5563; }
.search-counter {
    position: absolute; right: calc(5% + 18px); top: 50%; transform: translateY(-50%);
    font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: #00f2fe;
    opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.search-counter.visible { opacity: 0.8; }
.tree-container { max-width: 900px; margin: 0 auto; padding: 0 5%; flex: 1; padding-right: 170px; }
details {
    width: 100%; margin-bottom: 0.8rem; border-radius: 8px; background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; position: relative;
}
details[open] {
    background: var(--layer-bg, rgba(255, 255, 255, 0.02));
    border-color: var(--layer-accent, rgba(255, 255, 255, 0.2));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 30px var(--layer-glow, rgba(255, 255, 255, 0.05));
}
details[open] > summary {
    background: linear-gradient(90deg, var(--layer-header, rgba(255, 255, 255, 0.05)), transparent);
    position: relative;
}
details[open] > summary::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--layer-border, rgba(255, 255, 255, 0.1));
}
summary {
    width: 100%; padding: 1rem 1.5rem; cursor: pointer; display: flex; align-items: center;
    gap: 0.8rem; font-size: 0.95rem; color: #e5e7eb; list-style: none;
    transition: background-color 0.25s ease; user-select: none; min-width: 0;
}
summary::-webkit-details-marker { display: none; }
summary::before {
    content: '▶'; font-size: 0.7rem; color: var(--layer-accent, #00f2fe);
    transition: transform 0.3s ease, color 0.3s ease; flex-shrink: 0;
}
details[open] > summary::before { transform: rotate(90deg); }
.icon {
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--layer-accent, #00f2fe); flex-shrink: 0; width: 20px; height: 20px;
}
.icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
summary > span:not(.icon):not(.expand-btn) { flex: 1; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
summary:hover { background: rgba(255, 255, 255, 0.04); }
.expand-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem; letter-spacing: 0.5px; text-transform: uppercase;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
}
.expand-btn:hover {
    background: rgba(0, 242, 254, 0.08);
    border-color: rgba(0, 242, 254, 0.4);
    color: #00f2fe;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
}
.expand-btn .exp-icon {
    font-size: 0.7rem;
    line-height: 1;
    transition: transform 0.25s ease;
}
.expand-btn.open .exp-icon { transform: rotate(180deg); }
.layer-content { padding: 1rem 1.5rem 1rem 3rem; position: relative; }
.layer-content::before {
    content: ''; position: absolute; left: 1.5rem; top: 0; bottom: 0; width: 1px;
    background: linear-gradient(to bottom, var(--layer-accent, #00f2fe), transparent); opacity: 0.3;
}
.layer-content > details {
    background: rgba(255, 255, 255, 0.01); border-color: rgba(255, 255, 255, 0.04);
    margin-left: 0.5rem; width: auto;
}
.layer-content > details[open] {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--layer-accent, rgba(255, 255, 255, 0.2));
    border-left: 3px solid var(--layer-accent, #00f2fe);
}
.layer-content > details > summary { font-size: 0.9rem; padding: 0.8rem 1.2rem; }
.doc-item {
    padding: 0.6rem 1rem; margin-bottom: 0.5rem; background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--layer-accent, #10b981); border-radius: 0 4px 4px 0;
    font-size: 0.85rem; color: #cbd5e1;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
    display: flex; align-items: flex-start; gap: 10px;
    overflow-wrap: anywhere; word-break: break-word; cursor: pointer;
}
.doc-item:hover { background: rgba(255, 255, 255, 0.05); transform: translateX(5px); color: #fff; }
.doc-item::before {
    content: '◇'; color: var(--layer-accent, #10b981); font-size: 1rem; line-height: 1.4; flex-shrink: 0;
}
.doc-item mark,
.about-item mark { background: rgba(0, 242, 254, 0.25); color: #fff; padding: 0 2px; border-radius: 2px; }
.theme-philosophy { --layer-accent:#f093fb; --layer-glow:rgba(240,147,251,0.15); --layer-border:rgba(240,147,251,0.3); --layer-header:rgba(240,147,251,0.1); }
.theme-physics    { --layer-accent:#00f2fe; --layer-glow:rgba(0,242,254,0.15); --layer-border:rgba(0,242,254,0.3); --layer-header:rgba(0,242,254,0.1); }
.theme-matrices   { --layer-accent:#8b5cf6; --layer-glow:rgba(139,92,246,0.15); --layer-border:rgba(139,92,246,0.3); --layer-header:rgba(139,92,246,0.1); }
.theme-tech       { --layer-accent:#10b981; --layer-glow:rgba(16,185,129,0.15); --layer-border:rgba(16,185,129,0.3); --layer-header:rgba(16,185,129,0.1); }
.theme-economy    { --layer-accent:#fbbf24; --layer-glow:rgba(251,191,36,0.15); --layer-border:rgba(251,191,36,0.3); --layer-header:rgba(251,191,36,0.1); }
.theme-archive    { --layer-accent:#9ca3af; --layer-glow:rgba(156,163,175,0.15); --layer-border:rgba(156,163,175,0.3); --layer-header:rgba(156,163,175,0.1); }
.theme-science    { --layer-accent:#a3e635; --layer-glow:rgba(163,230,53,0.15); --layer-border:rgba(163,230,53,0.3); --layer-header:rgba(163,230,53,0.1); }
.side-plaques {
    position: fixed; right: 0; top: calc(50% + 60px);
    display: flex; flex-direction: column; gap: 8px; z-index: 90; padding: 0;
}
.plaque {
    display: flex; align-items: center; justify-content: flex-end; width: 145px;
    padding: 12px 16px 12px 12px; font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem; letter-spacing: 0.5px; text-transform: uppercase;
    text-decoration: none; color: #cbd5e1; background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.08);
    border-right: none; border-radius: 8px 0 0 8px;
    transition: width 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: right; position: relative; overflow: hidden; cursor: pointer;
}
.plaque::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--p-accent, #00f2fe); transition: width 0.3s ease;
}
.plaque:hover {
    width: 165px; color: #fff; border-color: var(--p-accent, #00f2fe);
    box-shadow: -8px 0 24px var(--p-glow, rgba(0,242,254,0.25));
}
.plaque:hover::before { width: 5px; }
.plaque.p-home    { --p-accent:#00f2fe; --p-glow:rgba(0,242,254,0.3); }
.plaque.p-manifest{ --p-accent:#f093fb; --p-glow:rgba(240,147,251,0.3); }
.plaque.p-author  { --p-accent:#f5576c; --p-glow:rgba(245,87,108,0.3); }
.plaque.p-about   { --p-accent:#fbbf24; --p-glow:rgba(251,191,36,0.3); }
.plaque.p-contacts{ --p-accent:#10b981; --p-glow:rgba(16,185,129,0.3); }
.site-footer {
    margin-top: 5rem; background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--glass-border); backdrop-filter: blur(10px); padding: 3rem 5% 0;
}
.footer-grid {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
    padding-bottom: 2.5rem; align-items: start;
}
.footer-brand-block { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1rem; }
.logo-square { width: 90px; height: 90px; object-fit: contain; filter: drop-shadow(0 0 20px rgba(240, 147, 251, 0.2)); }
.footer-col h4 {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px;
    color: var(--text-muted); margin-bottom: 1.2rem; font-family: 'JetBrains Mono', monospace;
}
.footer-col p { font-size: 0.85rem; color: #94a3b8; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
    color: #94a3b8; text-decoration: none; font-size: 0.85rem;
    transition: color 0.2s ease, padding-left 0.2s ease; display: inline-block;
}
.footer-col ul li a:hover { color: #00f2fe; padding-left: 5px; }
.footer-col ul li a::before { content: '› '; color: #4b5563; transition: color 0.2s ease; }
.footer-col ul li a:hover::before { color: #00f2fe; }
.footer-brand { font-family: 'JetBrains Mono', monospace; font-size: 1.3rem; font-weight: 700; letter-spacing: 2px; }
.footer-tagline {
    font-style: italic; color: #64748b; font-size: 0.8rem;
    margin-top: 1rem; padding-left: 12px; border-left: 2px solid #f093fb;
}
.footer-badge {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.4rem 0.9rem 0.4rem 0.5rem;
    margin: 0.5rem auto 0.8rem;
    background: rgba(20, 20, 30, 0.7);
    border: 1px solid rgba(240, 147, 251, 0.25);
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    backdrop-filter: blur(8px);
    width: fit-content;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.footer-badge:hover {
    border-color: rgba(240, 147, 251, 0.5);
    box-shadow: 0 0 16px rgba(240, 147, 251, 0.15);
}
.footer-badge .fb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff;
    flex-shrink: 0;
}
.footer-badge .fb-stats {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #cbd5e1;
}
.footer-badge .fb-num {
    position: relative;
    padding-left: 0.9rem;
    line-height: 1;
}
.footer-badge .fb-num::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #00f2fe;
}
.footer-badge #fbOpen::before  { background: #10b981; }
.footer-badge #fbDl::before    { background: #00f2fe; }
.footer-badge #fbTotal::before { background: #f093fb; }
.footer-badge .fb-num.loading  { opacity: 0.35; }
.footer-stats {
    width: 100%; max-width: 1100px; margin: 0 auto; padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; text-align: center;
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 0.5rem 0.2rem; }
.stat-value {
    font-family: 'JetBrains Mono', monospace; font-size: 1.6rem; font-weight: 700; line-height: 1;
    background: linear-gradient(135deg, #00f2fe, #f093fb);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; color: transparent;
}
.stat-label {
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px;
    color: #64748b; font-family: 'JetBrains Mono', monospace; line-height: 1.3;
}
.platforms-line {
    width: 100%; max-width: 1100px; margin: 0 auto; padding: 1rem 0 0.5rem;
    text-align: center; font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem; color: #4b5563; letter-spacing: 0.8px; line-height: 1.8;
}
.platforms-line .sep { color: #374151; margin: 0 8px; }
.platforms-line .future { color: #fbbf24; opacity: 0.7; }
.platforms-line a {
    color: #00f2fe;
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}
.platforms-line a:hover {
    color: #f093fb;
    text-shadow: 0 0 8px rgba(240, 147, 251, 0.4);
}
.footer-media-line {
    width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 0 1.5rem;
    text-align: center; font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem; letter-spacing: 1.2px;
    display: flex; justify-content: center; gap: 1.2rem;
}
.footer-media-link {
    color: #94a3b8;
    text-decoration: none;
    cursor: pointer;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    transition: all 0.25s ease;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
}
.footer-media-link svg {
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.footer-media-link:hover {
    color: #00f2fe;
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
    background: rgba(0, 242, 254, 0.05);
}
.footer-media-link:hover svg {
    opacity: 1;
    transform: scale(1.1);
}
.footer-bottom {
    max-width: 1100px; margin: 0 auto; padding: 1.5rem 0;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.footer-bottom p { font-size: 0.75rem; color: #4b5563; font-family: 'JetBrains Mono', monospace; }
.footer-bottom .dot {
    display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    background: #10b981; margin-right: 8px; box-shadow: 0 0 8px #10b981;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.modal {
    display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px); z-index: 200;
    justify-content: center; align-items: flex-start;
    padding: 4vh 5%; overflow-y: auto;
}
.modal.open { display: flex; }
.modal-content {
    position: relative; background: #0d0d14; border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px; max-width: 860px; width: 100%;
    padding: 2.5rem 3rem; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    animation: modalIn 0.25s ease-out;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-close {
    position: absolute; top: 12px; right: 16px; background: transparent; border: none;
    color: #6b7280; font-size: 2rem; line-height: 1; cursor: pointer;
    transition: color 0.2s; padding: 8px 12px;
}
.modal-close:hover { color: #f5576c; }
.modal-toolbar {
    display: flex; gap: 0.8rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.modal-back {
    display: inline-block; background: transparent; border: 1px solid rgba(255, 255, 255, 0.1);
    color: #00f2fe; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
    padding: 6px 14px; border-radius: 6px; cursor: pointer;
    transition: all 0.2s ease;
}
.modal-back:hover { background: rgba(0, 242, 254, 0.1); border-color: #00f2fe; }
.modal-print {
    display: inline-block; background: transparent;
    border: 1px solid rgba(16, 185, 129, 0.4); color: #10b981;
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
    padding: 6px 14px; border-radius: 6px; cursor: pointer;
    transition: all 0.2s ease;
}
.modal-print:hover { background: rgba(16, 185, 129, 0.1); border-color: #10b981; }
.modal-back-bottom-wrap {
    margin-top: 2.5rem; padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap;
}
.modal-title {
    font-family: 'JetBrains Mono', monospace; font-size: 1.4rem; color: #00f2fe;
    margin-bottom: 1.5rem; padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.modal-body { color: #d1d5db; font-size: 0.95rem; line-height: 1.7; }
.modal-body h1, .modal-body h2, .modal-body h3 {
    font-family: 'JetBrains Mono', monospace; color: #f093fb; margin: 1.5rem 0 0.8rem;
}
.modal-body h1 { font-size: 1.3rem; }
.modal-body h2 { font-size: 1.15rem; }
.modal-body h3 { font-size: 1rem; }
.modal-body p { margin-bottom: 1rem; }
.modal-body ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.modal-body li { margin-bottom: 0.4rem; }
.modal-body blockquote {
    border-left: 3px solid #f093fb; padding: 0.5rem 1rem; margin: 1rem 0;
    background: rgba(240, 147, 251, 0.05); font-style: italic; color: #cbd5e1;
}
.modal-body hr { border: none; border-top: 1px solid rgba(255, 255, 255, 0.08); margin: 1.5rem 0; }
.modal-body strong { color: #fff; }
.modal-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.85rem; }
.modal-body th, .modal-body td {
    padding: 0.5rem 0.7rem; border: 1px solid rgba(255, 255, 255, 0.08); text-align: left;
}
.modal-body th { background: rgba(255, 255, 255, 0.03); color: #00f2fe; font-weight: 600; }
.modal-body code {
    background: rgba(0, 242, 254, 0.08); padding: 1px 5px; border-radius: 3px;
    font-family: 'JetBrains Mono', monospace; font-size: 0.85em; color: #00f2fe;
}
.modal-body a {
    color: #00f2fe;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 242, 254, 0.3);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.modal-body a:hover {
    color: #f093fb;
    border-bottom-color: #f093fb;
}
.media-block {
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}
.media-block-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem; color: #f093fb;
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(240, 147, 251, 0.15);
}
.media-embed {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-align: center;
    padding: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
}
.media-embed video {
    width: 100%;
    max-height: 480px;
    background: #000;
}
.media-embed iframe {
    width: 100%;
    height: 380px;
    border: none;
    display: block;
}
.vk-playlist-wrap {
    width: 100%;
    min-height: 340px;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vk-playlist-wrap > div {
    width: 100%;
}
.media-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.6rem;
}
.media-photo-item {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    font-size: 0.65rem;
    font-family: 'JetBrains Mono', monospace;
    overflow: hidden;
}
.media-photo-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.media-photo-item img:hover {
    transform: scale(1.05);
    filter: brightness(1.15);
}
.media-hint {
    font-size: 0.7rem;
    color: #4b5563;
    font-family: 'JetBrains Mono', monospace;
    margin-top: 0.6rem;
    line-height: 1.5;
}
.media-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.media-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(240, 147, 251, 0.2);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}
.media-link-card:hover {
    background: rgba(240, 147, 251, 0.08);
    border-color: #f093fb;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4), 0 0 15px rgba(240, 147, 251, 0.2);
}
.mlc-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.mlc-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.mlc-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #00f2fe;
    letter-spacing: 0.5px;
}
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 300;
    align-items: center;
    justify-content: center;
    padding: 3vh 3%;
    user-select: none;
}
.lightbox.open { display: flex; }
.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0, 242, 254, 0.25);
    animation: lbIn 0.25s ease-out;
}
@keyframes lbIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 8px 14px;
}
.lightbox-close:hover { color: #f5576c; }
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20, 20, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #00f2fe;
    font-size: 1.6rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
    font-family: 'JetBrains Mono', monospace;
}
.lightbox-arrow:hover {
    background: rgba(0, 242, 254, 0.15);
    border-color: #00f2fe;
    box-shadow: 0 0 24px rgba(0, 242, 254, 0.3);
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #6b7280;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 600px) {
    .lightbox-arrow { width: 42px; height: 42px; font-size: 1.2rem; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}
.print-header { display: none; }
.print-footer { display: none; }
.about-tree { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 1rem; }
.about-item {
    padding: 0.65rem 1rem; background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid #fbbf24; border-radius: 0 4px 4px 0;
    font-size: 0.88rem; color: #cbd5e1; cursor: pointer;
    transition: all 0.2s ease;
}
.about-item:hover { background: rgba(255, 255, 255, 0.05); transform: translateX(5px); color: #fff; }
.about-item::before { content: '◈ '; color: #fbbf24; margin-right: 4px; }
.about-section {
    margin-top: 1.5rem; margin-bottom: 0.6rem; padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 2px; color: #f093fb;
}
.about-sub { padding-left: 0.4rem; display: flex; flex-direction: column; gap: 0.3rem; }
.about-sub .about-item { border-left-color: #8b5cf6; font-size: 0.82rem; }
.about-sub .about-item::before { color: #8b5cf6; }
.about-details {
    background: transparent !important;
    border: none !important;
    margin-bottom: 0.4rem;
    padding: 0;
    box-shadow: none !important;
    border-radius: 0;
}
.about-details > summary {
    list-style: none;
    cursor: pointer;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid #fbbf24;
    border-radius: 0 4px 4px 0;
    font-size: 0.88rem;
    color: #cbd5e1;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.about-details > summary::before {
    content: '▶';
    font-size: 0.65rem;
    color: #fbbf24;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    position: static;
    background: none;
}
.about-details[open] > summary::before {
    transform: rotate(90deg);
}
.about-details > summary::after { display: none !important; }
.about-details > summary::-webkit-details-marker { display: none; }
.about-details > summary:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
    color: #fff;
}
.about-details-content {
    margin-top: 0.4rem;
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    border-left: 1px solid rgba(251, 191, 36, 0.25);
    margin-left: 1rem;
}
.about-details-content .about-item {
    border-left-color: #8b5cf6;
    font-size: 0.82rem;
}
.about-details-content .about-item::before {
    color: #8b5cf6;
}
.contacts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin: 1.5rem 0; }
.contact-card {
    text-align: center; padding: 1.2rem 0.8rem; background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 12px;
}
.qr-placeholder {
    width: 180px; height: 180px; margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.03); border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; color: #4b5563; overflow: hidden; text-align: center; padding: 0.5rem;
}
.qr-placeholder img { width: 100%; height: 100%; object-fit: contain; }
.contact-label {
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 1px; color: #00f2fe; margin-bottom: 0.3rem;
}
.contact-value { font-size: 0.85rem; color: #cbd5e1; word-break: break-word; }
.contact-value a {
    color: #00f2fe;
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    border-bottom: 1px solid rgba(0, 242, 254, 0.3);
}
.contact-value a:hover {
    color: #f093fb;
    border-bottom-color: #f093fb;
    text-shadow: 0 0 8px rgba(240, 147, 251, 0.4);
}
.contacts-note { text-align: center; font-size: 0.75rem; color: #4b5563; margin-top: 1.5rem; }
@media print {
    @page { margin: 15mm 12mm 15mm 12mm; }
    body.printing { background: #fff !important; color: #000 !important; }
    body.printing > *:not(.modal) { display: none !important; }
    body.printing .modal {
        position: static !important; display: block !important;
        background: #fff !important; padding: 0 !important; inset: auto !important;
        overflow: visible !important; backdrop-filter: none !important;
    }
    body.printing .modal-content {
        background: #fff !important; border: none !important; box-shadow: none !important;
        padding: 0 !important; max-width: 100% !important; width: 100% !important;
        animation: none !important; overflow: visible !important;
        max-height: none !important; height: auto !important;
    }
    body.printing .modal-body {
        overflow: visible !important; max-height: none !important; height: auto !important;
        color: #000 !important;
    }
    body.printing .modal-close,
    body.printing .modal-toolbar { display: none !important; }
    body.printing .modal-back-bottom-wrap {
        display: block !important;
        margin-top: 24px !important;
        padding-top: 12px !important;
        border-top: 1px solid #333 !important;
        text-align: center !important;
    }
    body.printing .modal-back-bottom-wrap .modal-back,
    body.printing .modal-back-bottom-wrap .modal-print { display: none !important; }
    body.printing .print-header {
        display: flex !important; align-items: center; gap: 14px;
        padding-bottom: 12px; margin-bottom: 18px;
        border-bottom: 2px solid #333; page-break-inside: avoid;
    }
    body.printing .print-header img { width: 60px; height: 60px; object-fit: contain; }
    body.printing .print-header .print-brand {
        display: flex; flex-direction: column; justify-content: center; line-height: 1.2;
    }
    body.printing .print-header .print-brand-name {
        font-family: 'JetBrains Mono', monospace; font-weight: 700;
        font-size: 14pt; color: #000; letter-spacing: 2px;
    }
    body.printing .print-header .print-brand-tag {
        font-family: 'Inter', sans-serif; font-size: 8pt; color: #555; letter-spacing: 0.5px;
    }
    body.printing .print-header .print-brand-url {
        font-family: 'JetBrains Mono', monospace; font-size: 8pt; color: #666; margin-top: 2px;
    }
    body.printing .print-footer {
        display: block !important;
        margin-top: 24px; padding-top: 12px;
        border-top: 1px solid #333; text-align: center;
        font-family: 'JetBrains Mono', monospace;
        font-size: 10pt; color: #333;
        page-break-inside: avoid;
    }
    body.printing .modal-title { color: #000 !important; border-bottom-color: #999 !important; }
    body.printing .modal-body, body.printing .modal-body * { color: #000 !important; }
    body.printing .modal-body h1,
    body.printing .modal-body h2,
    body.printing .modal-body h3 { color: #000 !important; }
    body.printing .modal-body blockquote { background: #f5f5f5 !important; border-left-color: #666 !important; }
    body.printing .modal-body th, body.printing .modal-body td { border-color: #999 !important; }
    body.printing .modal-body th { background: #eee !important; }
    body.printing .modal-body code { background: #f0f0f0 !important; color: #000 !important; }
    body.printing h1, body.printing h2, body.printing h3,
    body.printing blockquote, body.printing pre,
    body.printing table, body.printing img { page-break-inside: avoid; }
    body.printing h1, body.printing h2, body.printing h3 { page-break-after: avoid; }
    body.printing a, body.printing a:visited {
        color: #000 !important; text-decoration: none !important; border-bottom: none !important;
    }
}
@media (max-width: 1100px) {
    .tree-container { padding-right: 5%; }
    .thesis-overlay {
        position: relative; top: auto; right: auto; bottom: auto;
        width: auto; max-width: none; margin: 1rem;
        font-size: 0.8rem; max-height: none;
    }
    .tree-banner { height: auto; min-height: 320px; padding-bottom: 1rem; }
    .side-plaques {
        position: static; transform: none; flex-direction: row; flex-wrap: wrap;
        justify-content: center; margin: 2rem auto; padding: 0 5%; top: auto;
    }
    .plaque {
        width: auto; min-width: 100px; border-right: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 8px; justify-content: center; padding: 10px 14px;
    }
    .plaque:hover { width: auto; }
    .footer-stats { grid-template-columns: repeat(3, 1fr); }
    .header-player { padding: 0.4rem 0.8rem; gap: 0.6rem; }
    .hp-progress { width: 90px; }
    .hp-volume { display: none; }
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
    .hp-info { min-width: 100px; }
    .hp-title { max-width: 140px; }
}
@media (max-width: 700px) {
    .header-player { display: none; }
}
@media (max-width: 600px) {
    .hero h1 { font-size: 1.8rem; }
    .layer-content { padding-left: 1.5rem; }
    .layer-content::before { left: 0.5rem; }
    summary { padding: 0.8rem 1rem; }
    .expand-btn { font-size: 0.55rem; padding: 0.3rem 0.5rem; }
    .expand-btn .exp-text { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
    .footer-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 1.5rem 0; }
    .stat-value { font-size: 1.4rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .plaque { font-size: 0.6rem; padding: 8px 10px; min-width: 80px; }
    .modal-content { padding: 2rem 1.5rem; }
    .contacts-grid { grid-template-columns: 1fr; }
    .qr-placeholder { width: 200px; height: 200px; }
    .footer-media-line { gap: 0.6rem; font-size: 0.65rem; }
    .footer-media-link { padding: 0.25rem 0.6rem; }
    .media-embed iframe { height: 240px; }
}