:root {
    --bg: #f7f7f6;
    --surface: #ffffff;
    --text: #151515;
    --muted: #626262;
    --line: #e7e3dd;
    --accent: #1d9bf0;
    --accent-strong: #0a6fb5;
    --shadow: 0 18px 52px rgba(21, 21, 21, 0.04);
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

a {
    color: inherit;
}

.shell {
    width: min(1120px, calc(100% - 64px));
    margin: 0 auto;
}

.site-header {
    display: block;
    padding: 30px 0;
}

.brand {
    display: inline-block;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 0 14px;
    background: var(--surface);
    color: var(--text);
    font-weight: 650;
    text-decoration: none;
}

.blog-hero {
    display: grid;
    place-items: center;
    min-height: 210px;
    padding: 20px 0 36px;
    text-align: center;
}

.blog-hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(43px, 6vw, 58px);
    font-weight: 400;
    letter-spacing: 0;
}

.public-feed {
    width: min(486px, 100%);
    margin: 0 auto 46px;
}

.intro-card,
.post-card {
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.intro-card {
    padding: 34px 28px;
    text-align: center;
}

.intro-card p {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-style: italic;
    line-height: 1.25;
}

.post-card {
    margin-top: 16px;
    padding: 48px 40px;
}

.embed-preview {
    border: 1px solid #cfd9de;
    border-radius: 8px;
    padding: 14px;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

.embed-header {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c13131, #f6d5d5 52%, #2a5b9a);
}

.embed-header strong,
.embed-header span {
    display: block;
    font-size: 14px;
    line-height: 1.15;
}

.embed-header span {
    color: #536471;
}

.embed-mark {
    color: #0f1419;
    font-size: 24px;
}

.embed-preview p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.25;
}

.video-placeholder {
    display: grid;
    place-items: center;
    min-height: 310px;
    border-radius: 9px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.48)),
        linear-gradient(120deg, #655444, #c5b199 48%, #2f3130);
    overflow: hidden;
}

.play-button {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    padding-left: 4px;
}

.play-button::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid #fff;
    margin-left: 4px;
}

.embed-actions {
    display: flex;
    gap: 22px;
    border-top: 1px solid #eff3f4;
    margin-top: 12px;
    padding-top: 12px;
    color: #536471;
    font-size: 13px;
    font-weight: 700;
}

.compact-post {
    padding: 26px 30px;
    text-align: center;
}

.compact-post p {
    margin: 0;
    color: var(--muted);
}

.button.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.hero {
    display: grid;
    align-items: center;
    min-height: 360px;
    padding: 42px 0 64px;
    text-align: center;
}

.hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(46px, 8vw, 88px);
    font-weight: 400;
    letter-spacing: 0;
}

.hero p {
    width: min(620px, 100%);
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 54px;
}

.panel {
    min-height: 190px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 22px;
    box-shadow: var(--shadow);
}

.panel h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.panel p,
.panel li {
    color: var(--muted);
    line-height: 1.55;
}

.panel p {
    margin: 0;
}

.panel ul {
    margin: 0;
    padding-left: 18px;
}

.admin-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 28px;
    padding: 24px 0 64px;
}

.admin-nav {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 12px;
    align-self: start;
}

.admin-nav a {
    display: block;
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--muted);
    text-decoration: none;
}

.admin-nav a.active {
    background: #edf7f5;
    color: var(--accent-strong);
    font-weight: 700;
}

.admin-main {
    display: grid;
    gap: 18px;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.stat {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 18px;
}

.stat strong {
    display: block;
    font-size: 30px;
}

.site-footer {
    padding: 4px 0 58px;
    color: #111;
    font-size: 14px;
    text-align: center;
}

.footer-inner {
    width: min(520px, calc(100% - 64px));
}

.site-footer p {
    margin: 0 0 6px;
}

.site-footer a {
    text-decoration: none;
}

.site-footer .disclaimer {
    margin-top: 28px;
    text-align: left;
    font-size: 12px;
    line-height: 1.75;
}

@media (max-width: 760px) {
    .admin-layout,
    .panel-grid,
    .stat-row {
        grid-template-columns: 1fr;
    }

    .shell {
        width: min(100% - 32px, 1120px);
    }

    .site-header {
        padding-top: 22px;
    }

    .hero {
        min-height: 300px;
        text-align: left;
    }

    .hero p {
        margin-left: 0;
    }

    .blog-hero {
        min-height: 160px;
        padding-bottom: 28px;
    }

    .post-card {
        padding: 22px 14px;
    }

    .intro-card {
        padding: 28px 18px;
    }

    .intro-card p {
        font-size: 21px;
    }

    .video-placeholder {
        min-height: 230px;
    }
}
