.microblog-frame {
    max-width: 1100px;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    --microblog-footer-icon-size: clamp(36px, 5.0vw, 56px);
    --microblog-footer-label-size: clamp(0.46rem, 1.7vw, 0.64rem);
}

.microblog-frame #contentSection {
    min-height: 0;
    padding-right: 0.4rem;
}

.microblog-frame footer {
    min-height: 0;
}

.microblog-frame footer nav {
    gap: 0.75rem 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
}

.microblog-frame .social-item {
    width: var(--microblog-footer-icon-size);
}

.microblog-frame .social-title {
    font-size: var(--microblog-footer-label-size);
    margin-bottom: 0.25rem;
    letter-spacing: 0.08em;
}

.microblog-frame .nav-button {
    width: var(--microblog-footer-icon-size);
    height: var(--microblog-footer-icon-size);
}

.micro-entry {
    box-shadow: 2px 12px 0 #000;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.85rem;
}

.microblog-feed .micro-entry:nth-child(odd) {
    background: #ff00cc;
} 

.microblog-feed .micro-entry:nth-child(even) {
    background: #d8d8d8;
}

.microblog-tabs-shell {
    margin-bottom: 1rem;
}

.microblog-eyebrow,
.microblog-section-label {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #aa0000;
}

.micro-entry h3 {
    margin: 0.35rem 0 0.6rem;
    line-height: 1.3rem;
    font-size: clamp(0.82rem, 2.7vw, 1rem);
}

.microblog-title-tab {
    cursor: default;
}

.microblog-nav-link {
    text-decoration: none;
}

.microblog-subtitle,
.micro-entry p,
.sidebar-list {
    font-size: 1.0rem;
    line-height: 1.6;
    margin: 0;
}

.micro-entry p {
    font-family: agsfnt0, monospace;
    font-weight: bold;
}

.microblog-subtitle {
    margin-top: 0.55rem;
}

.microblog-feed {
    display: grid;
    gap: 1rem;
    padding-bottom: 0.9rem;
}

.micro-entry {
    cursor: pointer;
}

.micro-entry-body {
    min-width: 0;
    flex: 1 1 auto;
}

.micro-entry-thumb {
    width: 88px;
    min-width: 88px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
    background: #fff;
}

.micro-entry-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    image-rendering: pixelated;
}

.micro-entry-sprite-player,
.microblog-sprite-player {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

.micro-entry-sprite-player,
.micro-entry-sprite-player canvas,
.micro-entry-sprite-player .microblog-sprite-canvas {
    width: 100%;
    height: 100%;
}

.microblog-sprite-player,
.microblog-sprite-player canvas,
.microblog-sprite-player .microblog-sprite-canvas {
    width: 100%;
    height: auto;
}

.microblog-sprite-canvas {
    display: block;
    background: #000;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.micro-entry-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, #ff5555 0 50%, #aa0000 50% 100%);
    padding: 0.4rem;
}

.micro-entry-thumb-fallback span {
    font-family: FFFORWA, monospace;
    font-size: 0.6rem;
    line-height: 1.25;
    color: #fff;
    text-align: center;
    text-shadow: 2px 2px 0 #000;
}

.micro-entry-head {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.7rem;
}

.micro-entry-title-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.micro-entry-title-row h3 {
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
}

.micro-entry-toggle {
    flex: 0 0 auto;
    border: 1px solid #000;
    background: #55ffff;
    color: #000;
    box-shadow: 2px 2px 0 #000;
    font-family: FFFORWA, monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.55rem;
    text-transform: uppercase;
}

.micro-entry-preview {
    margin: 0;
}

.micro-entry-title-row h3,
.micro-entry-preview {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.micro-entry-title-row h3 {
    -webkit-line-clamp: 2;
}

.micro-entry-preview {
    -webkit-line-clamp: 4;
}

.microblog-empty {
    font-size: 0.82rem;
}

.microblog-dialog {
    width: min(980px, 94vw);
    max-width: none;
    height: min(88vh, 900px);
    border: 2px solid #ff5555;
    background: #061117;
    color: #d8fff2;
    box-shadow: 0 0 0 3px #000, 0 0 36px rgba(0, 0, 0, 0.6);
    padding: 0;
}

.microblog-dialog::backdrop {
    background: rgba(0, 0, 0, 0.8);
}

.microblog-dialog-shell {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
}

.microblog-dialog-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid #184851;
    background: linear-gradient(180deg, rgba(3, 20, 25, 0.96) 0%, rgba(5, 31, 39, 0.96) 100%);
}

.microblog-dialog-head > div {
    min-width: 0;
    flex: 1 1 auto;
}

.microblog-dialog-head h2 {
    margin: 0.3rem 0 0;
    font-size: clamp(1.15rem, 2.4vw, 1.8rem);
    line-height: 1.2;
    color: #f3fff9;
    overflow-wrap: anywhere;
}

.microblog-dialog-close {
    flex: 0 0 auto;
    border: 1px solid #000;
    background: #55ffff;
    color: #000;
    box-shadow: 2px 2px 0 #000;
    font-family: FFFORWA, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding: 0.45rem 0.7rem;
    text-transform: uppercase;
    cursor: pointer;
}

.microblog-dialog-body {
    overflow-y: auto;
    padding: 1.2rem 1.4rem 1.5rem;
    column-width: 22rem;
    column-gap: 2.2rem;
    column-rule: 1px solid rgba(138, 247, 193, 0.18);
}

.microblog-dialog-body p {
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: none;
    text-align: justify;
    text-wrap: pretty;
    break-inside: avoid;
    font-family: agsfnt0, monospace;
    color: #dfffee;
    text-shadow:
        0 0 1px rgba(125, 255, 154, 0.95),
        0 0 3px rgba(125, 255, 154, 0.45),
        0 0 6px rgba(39, 214, 123, 0.22);
}

.microblog-dialog-figure {
    margin: 0 0 1.1rem;
    break-inside: avoid;
}

.microblog-dialog-figure-xs {
    width: min(28%, 8rem);
}

.microblog-dialog-figure-s {
    width: min(42%, 12rem);
}

.microblog-dialog-figure-m {
    width: min(68%, 18rem);
}

.microblog-dialog-figure-xl {
    width: 100%;
}

.microblog-dialog-figure img {
    width: 100%;
    display: block;
    border: 1px solid #1f5d54;
    box-shadow: 0 0 0 2px #000;
    background: #000;
    image-rendering: pixelated;
}

.microblog-dialog-figure .microblog-sprite-player {
    border: 1px solid #1f5d54;
    box-shadow: 0 0 0 2px #000;
}

.microblog-dialog-figure figcaption {
    margin-top: 0.45rem;
    font-family: agsfnt0, monospace;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #99e3bd;
    text-shadow:
        0 0 1px rgba(125, 255, 154, 0.65),
        0 0 4px rgba(39, 214, 123, 0.2);
}

.microblog-dialog-links {
    margin: 0 0 1.1rem;
    break-inside: avoid;
}

.microblog-code-block {
    margin: 0 0 1.1rem;
    break-inside: avoid;
    border: 1px solid #1f5d54;
    box-shadow: 0 0 0 2px #000;
    background: #031015;
}

.microblog-code-head {
    min-height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.55rem;
    border-bottom: 1px solid #184851;
    background: linear-gradient(180deg, rgba(6, 35, 42, 0.96) 0%, rgba(4, 23, 30, 0.96) 100%);
}

.microblog-code-language {
    font-family: "Courier New", Consolas, monospace;
    font-size: 0.78rem;
    line-height: 1.45;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #7fc8ff;
}

.microblog-code-block pre {
    margin: 0;
    padding: 0.7rem 0.8rem 0.85rem;
    overflow-x: auto;
    background: #031015;
}

.microblog-code-block code {
    display: block;
    font-family: "Courier New", Consolas, monospace;
    font-size: 0.72rem;
    line-height: 1.35;
    white-space: pre;
    color: #b8ffd5;
    text-shadow: none;
}

.microblog-code-block figcaption {
    margin: 0;
    padding: 0 0.8rem 0.7rem;
    font-family: agsfnt0, monospace;
    font-size: 0.74rem;
    line-height: 1.4;
    color: #99e3bd;
}

.microblog-dialog-link-list {
    list-style: none;
    margin: 0.55rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.microblog-dialog-link-list a {
    color: #7dff9a;
    font-family: FFFORWA, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-shadow:
        0 0 1px rgba(125, 255, 154, 0.75),
        0 0 4px rgba(39, 214, 123, 0.18);
}

.microblog-dialog-link-list a:hover {
    color: #b7ffd1;
    text-decoration: underline;
}

@media (max-width: 800px) {
    .micro-entry {
        gap: 0.7rem;
    }

    .micro-entry-thumb {
        width: 72px;
        min-width: 72px;
    }

    .micro-entry-head {
        flex-direction: column;
    }

    .micro-entry-title-row {
        flex-direction: column;
    }

    .microblog-dialog {
        width: 100vw;
        height: 100vh;
    }

    .microblog-dialog-head {
        padding: 0.85rem 0.85rem 0.7rem;
    }

    .microblog-dialog-head h2 {
        font-size: 1.1rem;
    }

    .microblog-dialog-body {
        padding: 0.9rem;
        column-width: auto;
        column-gap: 0;
        column-rule: 0;
    }

    .microblog-dialog-figure-xs,
    .microblog-dialog-figure-s,
    .microblog-dialog-figure-m,
    .microblog-dialog-figure-xl {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .microblog-frame {
        gap: 0.55rem;
        padding: 0.55rem;
        --microblog-footer-icon-size: clamp(30px, 6vw, 40px);
        --microblog-footer-label-size: clamp(0.34rem, 2.1vw, 0.42rem);
    }

    .microblog-frame footer nav {
        gap: 0.45rem 0.3rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .microblog-tabs-shell {
        margin-bottom: 0.45rem;
    }

    .microblog-subtitle {
        margin-top: 0.35rem;
        font-size: 0.68rem;
        line-height: 1.25;
    }

    .microblog-feed {
        gap: 0.7rem;
        padding-bottom: 0.45rem;
    }

    .micro-entry-thumb {
        width: 80px;
        min-width: 80px;
    }

    .micro-entry {
        flex-direction: row;
        align-items: stretch;
    }

    .micro-entry-body {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        max-height: 80px;
        overflow: hidden;
    }

    .micro-entry-head {
        margin-bottom: 0.2rem;
        gap: 0.2rem;
    }

    .micro-entry-title-row {
        gap: 0.3rem;
    }

    .micro-entry-title-row h3 {
        margin: 0;
        font-size: clamp(0.64rem, 2.9vw, 0.78rem);
        -webkit-line-clamp: 2;
        line-height: 0.88rem;
        overflow-wrap: anywhere;
    }

    .micro-entry-toggle {
        display: none;
    }

    .microblog-section-label {
        font-size: 0.58rem;
        letter-spacing: 0.1em;
    }

    .micro-entry-preview {
        font-size: 0.62rem;
        line-height: 1.2;
        -webkit-line-clamp: 2;
    }

    .microblog-frame .social-title {
        margin-bottom: 0.08rem;
        letter-spacing: 0.03em;
        line-height: 1.1;
    }
}
