/*!
 * Love Diary · 情侣空间
 * 作者：ki
 * QQ：48347951
 */
:root {
    --bg: #ededed;
    --paper: #ffffff;
    --ink: #191919;
    --ink-soft: #4c4c4c;
    --muted: #b2b2b2;
    --link: #576b95;
    --line: #ececec;
    --panel: #f7f7f7;
    --like: #e05252;
    --nav-h: 52px;
    --col: 680px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.lb-lock { overflow: hidden; }

button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ------------------------------------------------------------ nav */

.mn {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 60;
    height: var(--nav-h);
    color: #fff;
    background: transparent;
    transition: background-color .28s ease, color .28s ease, box-shadow .28s ease;
}

.mn.is-solid {
    background: rgba(255, 255, 255, .97);
    color: var(--ink);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
}

.mn-inner {
    max-width: 1080px;
    height: 100%;
    margin: 0 auto;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mn-left {
    display: flex;
    align-items: baseline;
    gap: 18px;
    min-width: 0;
}

.mn-btn {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    line-height: 0;
    text-decoration: none;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color .2s ease;
}

.mn-btn:hover { background: rgba(0, 0, 0, .06); }
.mn:not(.is-solid) .mn-btn:hover { background: rgba(255, 255, 255, .16); }

.mn-btn svg {
    width: 23px;
    height: 23px;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .28));
}

.mn.is-solid .mn-btn svg { filter: none; }

.mn-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}

.mn-me {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1.5px solid rgba(255, 255, 255, .68);
    border-radius: 50%;
    overflow: hidden;
    background: #e9edeb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease;
}

.mn-me:hover { transform: scale(1.05); }

.mn.is-solid .mn-me { border-color: rgba(0, 0, 0, .12); }

.mn-me img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mn-me i {
    font-style: normal;
    font-size: 14px;
    font-weight: 600;
    color: #93a39b;
}

.mn-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .05em;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .3);
}

.mn.is-solid .mn-title { text-shadow: none; }

.mn-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mn-links a {
    position: relative;
    padding: 4px 0;
    font-size: 13.5px;
    line-height: 1;
    letter-spacing: .04em;
    color: inherit;
    opacity: .7;
    transition: opacity .2s ease;
}

.mn-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.5px;
    border-radius: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .22s ease;
}

.mn-links a:hover { opacity: 1; }

.mn-links a.is-active {
    opacity: 1;
    font-weight: 600;
}

.mn-links a.is-active::after { transform: scaleX(1); }

/* ------------------------------------------------------------ cover */

.cover {
    position: relative;
    height: clamp(276px, 36vw, 384px);
    background: #cfd4d1;
    overflow: visible;
}

.cover-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.01);
}

.cover--plain .cover-media,
.cover--plain {
    background: linear-gradient(135deg, #7c8c82 0%, #4f5d56 55%, #38423d 100%);
}

.cover-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .30) 0%, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, .16) 62%, rgba(0, 0, 0, .46) 100%);
    pointer-events: none;
}

.cover-inner {
    position: relative;
    max-width: var(--col);
    height: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

.cover-quote {
    position: absolute;
    left: 16px;
    bottom: 26px;
    max-width: 46%;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, .42);
    color: rgba(255, 255, 255, .96);
    pointer-events: none;
}

.cover-mark {
    display: block;
    font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
    font-size: 26px;
    line-height: .6;
    letter-spacing: 0;
    opacity: .55;
    margin-bottom: 5px;
}

.cover-line {
    margin: 0;
    font-family: "Songti SC", "Noto Serif SC", "STSong", "PingFang SC", serif;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.85;
    letter-spacing: .07em;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
    text-wrap: balance;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cover-days {
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
    font-size: 11.5px;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .78);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}

.cover-days b {
    font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: .02em;
    color: #fff;
}

.cover-days-label {
    letter-spacing: .16em;
    color: rgba(255, 255, 255, .62);
}

.cover-days-unit {
    font-size: 10.5px;
    letter-spacing: .16em;
    color: rgba(255, 255, 255, .72);
}

.cover-days i {
    font-style: normal;
    opacity: .5;
    margin: 0 2px;
}

.cover-user {
    position: absolute;
    right: 16px;
    bottom: -30px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.cover-id {
    padding-bottom: 43px;
    text-align: right;
    color: #fff;
}

.cover-name {
    margin: 0;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;
    font-family: "Songti SC", "Noto Serif SC", "STSong", "PingFang SC", serif;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: .16em;
    line-height: 1.25;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
    white-space: nowrap;
}

.cover-name em {
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-style: italic;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: .04em;
    opacity: .72;
}

.cover-sign {
    margin: 7px 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 11px;
    letter-spacing: .16em;
    color: rgba(255, 255, 255, .78);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
    white-space: nowrap;
}

.cover-sign::before {
    content: "";
    width: 20px;
    height: 1px;
    background: currentColor;
    opacity: .55;
}

.cover-avatars { display: flex; }

.cv {
    width: 68px;
    height: 68px;
    border-radius: 9px;
    overflow: hidden;
    background: #f2f2f2;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv + .cv {
    margin-left: -15px;
    transform: translateY(2px);
}

.cv img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cv i {
    font-style: normal;
    font-size: 24px;
    font-weight: 600;
    color: #9aa8a1;
}

/* ------------------------------------------------------------ stream */

.stream {
    max-width: var(--col);
    margin: 0 auto;
    background: var(--paper);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .02);
}

.post {
    display: flex;
    gap: 11px;
    padding: 20px 16px 18px;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 64px;
}

.stream > .post:first-child { padding-top: 54px; }
.post:last-child { border-bottom: 0; }

.post-avatar {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 5px;
    overflow: hidden;
    background: #e6ebe8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-avatar span {
    font-size: 17px;
    font-weight: 600;
    color: #93a39b;
}

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

.post-name {
    margin: 1px 0 0;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--link);
    letter-spacing: .01em;
}

.post-text {
    margin: 6px 0 0;
    font-size: 15.5px;
    line-height: 1.68;
    color: var(--ink);
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ------------------------------------------------------------ images */

.post-imgs {
    display: grid;
    gap: 4px;
    margin-top: 9px;
    width: 100%;
}

.post-imgs.n1 {
    display: block;
    width: 216px;
    max-width: 100%;
}

.post-imgs.n2 {
    grid-template-columns: repeat(2, 1fr);
    width: 232px;
    max-width: 100%;
}

.post-imgs.n4 {
    grid-template-columns: repeat(2, 1fr);
    width: 232px;
    max-width: 100%;
}

.post-imgs.n9 {
    grid-template-columns: repeat(3, 1fr);
    width: 330px;
    max-width: 100%;
}

.ph {
    position: relative;
    padding: 0;
    border: 0;
    background: #f1f1f1;
    cursor: zoom-in;
    overflow: hidden;
    border-radius: 3px;
    aspect-ratio: 1 / 1;
    width: 100%;
}

.ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, opacity .28s ease;
}

.ph:hover img { transform: scale(1.035); }
.ph:active img { opacity: .82; }

.post-imgs.n1 .ph { width: 216px; height: 216px; }

/* ------------------------------------------------------------ video / music */

.post-video-wrap {
    position: relative;
    margin-top: 10px;
    width: 100%;
    max-width: 380px;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    line-height: 0;
    cursor: pointer;
    box-shadow: 0 18px 40px -30px rgba(40, 28, 22, .7);
    outline: none;
}

.post-video-wrap:focus-visible {
    box-shadow: 0 0 0 3px rgba(191, 125, 114, .35), 0 18px 40px -30px rgba(40, 28, 22, .7);
}

.post-video {
    display: block;
    width: 100%;
    max-height: 420px;
    background: #000;
    transition: transform .45s ease;
}

.post-video-wrap:hover .post-video { transform: scale(1.015); }

.video-expand {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .42);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    pointer-events: none;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.video-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    padding: 2px 7px;
    border-radius: 3px;
    background: rgba(0, 0, 0, .5);
    color: rgba(255, 255, 255, .92);
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: .08em;
    pointer-events: none;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.music-card {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 9px;
    width: 100%;
    max-width: 330px;
    padding: 9px 10px;
    border: 1px solid #efefef;
    border-radius: 5px;
    background: #f7f7f7;
    color: inherit;
    transition: background-color .2s ease;
}

a.music-card:hover { background: #f2f2f2; }

.music-cover {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9d9d3, #cbb7ae);
    color: #fff;
}

.music-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-cover i {
    font-style: normal;
    font-size: 22px;
    line-height: 1;
}

.music-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.music-title {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-artist {
    font-size: 12.5px;
    color: #9a9a9a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-play {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: 1px solid #dcdcdc;
    border-radius: 50%;
    background: #fff;
    color: var(--link);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.music-play svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    margin-left: 1px;
}

a.music-card:hover .music-play {
    background: var(--link);
    border-color: var(--link);
    color: #fff;
}


/* ------------------------------------------------------------ foot */

.post-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.post-meta {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 8px;
}

.post-meta .loc { color: var(--link); }

.more-wrap { position: relative; flex: 0 0 auto; }

.post-more {
    width: 30px;
    height: 21px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: var(--panel);
    color: var(--link);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s ease;
}

.post-more:hover { background: #ededed; }
.post-more svg { width: 18px; height: 18px; fill: currentColor; }

.more-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 8;
    display: flex;
    align-items: stretch;
    background: #4c4c4c;
    border-radius: 9px;
    padding: 4px;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}

.more-menu::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 100%;
    border: 5px solid transparent;
    border-top-color: #4c4c4c;
}

.more-wrap.is-open .more-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.more-menu button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border: 0;
    background: none;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 6px;
}

.more-menu button + button { border-left: 0; }

.more-menu button:hover { background: rgba(255, 255, 255, .14); }

.more-menu svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.more-menu button:first-child svg { fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ------------------------------------------------------------ social */

.post-social {
    margin-top: 10px;
    background: var(--panel);
    border-radius: 4px;
    padding: 3px 12px 6px;
    display: none;
}

.post-social.is-open { display: block; }

.like-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 0;
    border: 0;
    background: none;
    color: var(--link);
    font-size: 13.5px;
    text-align: left;
    cursor: pointer;
}

.like-row svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--link);
    stroke-width: 1.7;
    transition: fill .2s ease, stroke .2s ease;
}

.like-row.is-liked svg { fill: var(--like); stroke: var(--like); }
.like-row.is-empty { display: none; }

.like-row b { font-weight: 400; }

.comment-list:not(:empty) {
    padding: 3px 0 5px;
}

.like-row:not(.is-empty) + .comment-list:not(:empty) {
    border-top: 1px solid var(--line);
    padding-top: 6px;
}

.cmt {
    font-size: 13.5px;
    line-height: 1.62;
    padding: 6px 0;
    color: var(--ink);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.cmt b {
    color: var(--link);
    font-weight: 400;
    margin-right: 5px;
}

.cmt-form {
    display: none;
    gap: 6px;
    padding: 10px 0 4px;
}

.cmt-form.is-open { display: flex; }

.cmt-form input {
    height: 30px;
    min-width: 0;
    padding: 0 8px;
    border: 1px solid #e3e3e3;
    border-radius: 3px;
    background: #fff;
    font-size: 13px;
    color: var(--ink);
    outline: none;
    transition: border-color .2s ease;
}

.cmt-form input:focus { border-color: #c4cddd; }

.cmt-form input[name="name"] { flex: 0 0 74px; }
.cmt-form .cmt-text { flex: 1 1 auto; }

.cmt-as {
    flex: 0 0 auto;
    align-self: center;
    max-width: 96px;
    padding: 0 6px;
    font-size: 12.5px;
    color: var(--link);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cmt-form button {
    flex: 0 0 auto;
    height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 3px;
    background: var(--link);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.cmt-form button:hover { background: #4a5d83; }
.cmt-form.is-sending { opacity: .6; pointer-events: none; }

/* ------------------------------------------------------------ empty / end */

.empty {
    padding: 96px 24px 88px;
    text-align: center;
    color: var(--ink-soft);
}

.empty-heart {
    display: block;
    font-size: 34px;
    color: #e7b6b6;
    margin-bottom: 14px;
}

.empty h2 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
}

.empty p {
    margin: 0 0 20px;
    font-size: 13.5px;
    color: var(--muted);
}

.empty-link {
    display: inline-block;
    padding: 8px 22px;
    border: 1px solid #d9dde2;
    border-radius: 4px;
    font-size: 13.5px;
    color: var(--link);
    background: #fff;
    cursor: pointer;
}

.end {
    max-width: var(--col);
    margin: 0 auto;
    padding: 26px 16px 44px;
    text-align: center;
    font-size: 12.5px;
    letter-spacing: .18em;
    color: #b8b8b8;
}

/* ------------------------------------------------------------ album / archive */

.page {
    max-width: var(--col);
    margin: 0 auto;
    padding: 46px 16px 12px;
    background: var(--paper);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .02);
}

.page-head {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.page-head h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: .03em;
}

.page-head p {
    margin: 6px 0 0;
    font-size: 12.5px;
    color: var(--muted);
}

.empty--page {
    padding: 64px 20px 72px;
    border-bottom: 1px solid var(--line);
}

/* album */

.album-year { margin-top: 22px; }

.album-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 9px;
}

.album-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .02em;
}

.album-head h3 i {
    margin-left: 2px;
    font-style: normal;
    font-size: 11.5px;
    font-weight: 400;
    color: var(--muted);
}

.album-head span {
    font-size: 12px;
    color: var(--muted);
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}

.album-ph {
    width: 100%;
    border-radius: 2px;
}

/* archive */

.archive-month { margin-top: 24px; }

.month-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 4px;
}

.month-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .02em;
}

.month-head span {
    font-size: 12px;
    color: var(--muted);
}

.archive-list { display: flex; flex-direction: column; }

.archive-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 4px;
    border-top: 1px solid #f2f2f2;
    color: inherit;
    transition: background-color .2s ease;
}

.archive-list .archive-item:last-child { border-bottom: 1px solid #f2f2f2; }
.archive-item:hover { background: #fafafa; }

.archive-day {
    flex: 0 0 30px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.archive-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.archive-title {
    font-size: 14px;
    color: var(--ink);
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.archive-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 12px;
    color: var(--muted);
}

.archive-meta em {
    font-style: normal;
    white-space: nowrap;
}

.kind {
    font-style: normal;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
    line-height: 1.65;
    background: #f0f2f5;
    color: #7b8a9e;
}

.kind-video { background: #edf3f0; color: #5f8674; }
.kind-music { background: #f6eff0; color: #b0767f; }

.archive-thumb {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 4px;
    object-fit: cover;
    background: #f1f1f1;
}

.archive-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dca9a9;
    font-size: 16px;
}

/* ------------------------------------------------------------ composer */

.composer {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .24s ease, visibility .24s;
}

.composer.is-open {
    opacity: 1;
    visibility: visible;
}

.composer-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.composer-card {
    position: relative;
    width: min(560px, 100%);
    max-height: min(86vh, 720px);
    overflow: auto;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .24);
    transform: translateY(12px);
    transition: transform .24s ease, opacity .2s ease;
}

.composer.is-open .composer-card { transform: translateY(0); }
.composer-card.is-sending { opacity: .65; pointer-events: none; }

.composer-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.composer-head h2 {
    margin: 0;
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: .02em;
}

.composer-cancel,
.composer-submit {
    padding: 6px 2px;
    border: 0;
    background: none;
    font-size: 14px;
    cursor: pointer;
}

.composer-cancel { color: #8c8c8c; }
.composer-submit { color: var(--link); font-weight: 600; }
.composer-submit:hover { color: #40537a; }

.composer-body { padding: 16px; }

.compose-types {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.compose-types label {
    position: relative;
    display: inline-flex;
}

.compose-types input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.compose-types span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 15px;
    border: 1px solid #e3e3e3;
    border-radius: 999px;
    background: #fff;
    color: #7a7a7a;
    font-size: 12.5px;
    transition: background-color .2s, border-color .2s, color .2s;
}

.compose-types input:checked + span {
    border-color: var(--link);
    background: var(--link);
    color: #fff;
}

.compose-types input:focus-visible + span {
    outline: 2px solid #c4cddd;
    outline-offset: 2px;
}

.composer-text {
    width: 100%;
    min-height: 84px;
    padding: 2px 0 10px;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    line-height: 1.65;
    outline: none;
    resize: vertical;
}

.composer-text::placeholder { color: #b9b9b9; }

.compose-panel[hidden] { display: none; }

.compose-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    height: 86px;
    border: 1px dashed #dcdcdc;
    border-radius: 6px;
    background: #fafafa;
    color: #9a9a9a;
    font-size: 12.5px;
    cursor: pointer;
    transition: border-color .2s, color .2s, background-color .2s;
}

.compose-add:hover {
    border-color: #b9c3d4;
    background: #f7f9fc;
    color: var(--link);
}

.compose-add input { display: none; }

.compose-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.compose-preview img {
    width: 72px;
    height: 72px;
    border-radius: 5px;
    object-fit: cover;
}

.compose-input {
    width: 100%;
    height: 38px;
    margin-top: 8px;
    padding: 0 10px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    background: #fafafa;
    color: var(--ink);
    font: inherit;
    font-size: 13.5px;
    outline: none;
    transition: border-color .2s, background-color .2s;
}

.compose-input:focus {
    border-color: #c4cddd;
    background: #fff;
}

.compose-input[type="file"] {
    height: auto;
    padding: 8px;
}

.compose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.compose-grid .compose-input { margin-top: 0; }
.compose-hint { margin: 8px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.compose-panel + .compose-grid,
.composer-text + .compose-grid { margin-top: 8px; }

/* ------------------------------------------------------------ profile */

.profile-card { width: min(520px, 100%); }

.profile-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
}

.profile-avatar {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    background: #eef1ef;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar i {
    font-style: normal;
    font-size: 22px;
    font-weight: 600;
    color: #9aa8a1;
}

.profile-hero-info b {
    display: block;
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: .02em;
}

.profile-hero-info span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    letter-spacing: .05em;
    color: #9b9b9b;
}

.compose-field {
    display: block;
    margin-top: 13px;
    min-width: 0;
}

.compose-field > span {
    display: block;
    margin-bottom: 6px;
    font-size: 11.5px;
    letter-spacing: .09em;
    color: #8a8a8a;
}

.compose-field .compose-input { margin-top: 0; }

.compose-field .compose-input + .compose-input { margin-top: 6px; }

.compose-field .composer-text {
    min-height: 62px;
    margin-top: 0;
    padding: 8px 10px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    background: #fafafa;
    font-size: 13.5px;
}

.compose-field .composer-text:focus {
    border-color: #c4cddd;
    background: #fff;
}

.compose-tip {
    display: block;
    margin-top: 6px;
    font-size: 11.5px;
    line-height: 1.7;
    color: #a3a3a3;
}

.profile-divider {
    margin: 22px 0 2px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 11.5px;
    letter-spacing: .1em;
    color: #8a8a8a;
}

.profile-foot {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.profile-save {
    height: 34px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: var(--link);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background-color .2s ease;
}

.profile-save:hover { background: #4a5d83; }

.profile-admin { font-size: 13px; color: var(--link); }

.profile-exit {
    margin-left: auto;
    border: 0;
    background: none;
    color: #b06464;
    font-size: 12.5px;
    cursor: pointer;
    padding: 4px 0;
}

.profile-exit:hover { text-decoration: underline; }

/* ------------------------------------------------------------ toast */

.toast {
    position: fixed;
    left: 50%;
    top: 72px;
    z-index: 120;
    transform: translate(-50%, -8px);
    max-width: min(86vw, 360px);
    padding: 9px 18px;
    border-radius: 6px;
    background: rgba(25, 25, 25, .86);
    color: #fff;
    font-size: 13.5px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease, transform .24s ease;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: rgba(190, 54, 54, .92); }

/* ------------------------------------------------------------ lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, .93);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

/* ------------------------------------------------------------ video modal */

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 105;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s;
}

.video-modal.is-open { opacity: 1; visibility: visible; }

.vm-mask {
    position: absolute;
    inset: 0;
    background: rgba(20, 13, 11, .92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.vm-stage {
    position: relative;
    z-index: 1;
    width: min(940px, 94vw);
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateY(10px) scale(.985);
    transition: transform .3s ease;
}

.video-modal.is-open .vm-stage { transform: translateY(0) scale(1); }

.vm-stage video {
    display: block;
    width: 100%;
    max-height: 78vh;
    border-radius: 16px;
    background: #000;
    box-shadow: 0 40px 110px rgba(0, 0, 0, .58);
    outline: none;
}

.vm-close {
    position: absolute;
    top: -15px;
    right: -15px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background-color .2s ease, transform .2s ease;
}

.vm-close:hover {
    background: rgba(255, 255, 255, .22);
    transform: rotate(90deg);
}

.vm-stage figcaption {
    font-family: "Songti SC", "Noto Serif SC", "STSong", "PingFang SC", serif;
    font-size: 13px;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .72);
    text-align: center;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}

.lb-stage {
    margin: 0;
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.lb-stage img {
    max-width: 92vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
}

.lb-stage figcaption {
    position: relative;
    padding: 2px 26px 0;
    font-family: "Songti SC", "Noto Serif SC", "STSong", "PingFang SC", serif;
    font-size: 13px;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .78);
    text-align: center;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}

.lb-stage figcaption::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    width: 28px;
    height: 1px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, .34);
}

.lb-close,
.lb-prev,
.lb-next {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover { background: rgba(255, 255, 255, .2); }

.lb-close {
    top: 20px;
    right: 20px;
    font-size: 26px;
    line-height: 1;
}

.lb-prev,
.lb-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    line-height: 1;
}

.lb-prev { left: 18px; }
.lb-next { right: 18px; }

/* ------------------------------------------------------------ 2026 polish */

:root {
    --bg: #f1efec;
    --paper: #fffdfa;
    --ink: #211f1c;
    --ink-soft: #56514a;
    --muted: #a8a29a;
    --link: #a66a61;
    --line: #eee9e2;
    --panel: #f7f3ed;
    --accent: #bf7d72;
    --shadow-card: 0 1px 2px rgba(48, 37, 28, .04), 0 30px 64px -44px rgba(48, 37, 28, .38);
}

body {
    background-color: #f1efec;
    background-image:
        radial-gradient(rgba(191, 125, 114, .06) 1px, transparent 1.4px),
        radial-gradient(900px 520px at 50% -8%, #fbf7f1 0%, rgba(251, 247, 241, 0) 62%),
        linear-gradient(180deg, #f3f1ee 0%, #eeece8 100%);
    background-size: 26px 26px, auto, auto;
    background-attachment: fixed;
}

::selection { background: rgba(191, 125, 114, .24); color: #5f3f3a; }

a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid rgba(191, 125, 114, .62);
    outline-offset: 3px;
}

.mn.is-solid {
    background: rgba(255, 253, 250, .88);
    box-shadow: 0 1px 0 rgba(60, 45, 35, .06), 0 16px 40px -34px rgba(60, 45, 35, .5);
}

.mn-title { letter-spacing: .08em; }
.mn-me { box-shadow: 0 6px 18px -12px rgba(0, 0, 0, .6); }

.cover { height: clamp(288px, 37vw, 396px); }
.cover-media { transform: scale(1.02); filter: saturate(1.03) contrast(1.02); }

.cover-veil {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .32) 0%, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, .13) 58%, rgba(0, 0, 0, .5) 100%);
}

.cover-line {
    text-wrap: balance;
    text-shadow: 0 2px 22px rgba(0, 0, 0, .3);
}

.cover-name span { letter-spacing: .13em; }
.cover-heart {
    font-family: -apple-system, "PingFang SC", sans-serif;
    font-style: normal;
    font-size: 13px;
    color: #f5b7ad;
    opacity: .96;
    letter-spacing: 0;
    transform: translateY(-1px);
    text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
}
.cover-sign { color: rgba(255, 255, 255, .82); }

.cover-quote {
    max-width: min(52%, 380px);
    padding: 11px 16px 12px 15px;
    border-left-color: rgba(255, 255, 255, .5);
    border-radius: 0 14px 14px 0;
    background: linear-gradient(90deg, rgba(32, 20, 15, .26) 0%, rgba(32, 20, 15, 0) 100%);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.cover-days {
    display: inline-flex;
    margin-top: 11px;
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.cv {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border-width: 3px;
    box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .6);
}

.cv + .cv {
    margin-left: -16px;
    transform: translateY(2px);
}

.post-avatar {
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(64, 46, 36, .05), 0 8px 16px -14px rgba(0, 0, 0, .45);
}

.music-card {
    border-color: #f0e2da;
    border-radius: 14px;
    background: linear-gradient(135deg, #fffaf7 0%, #f9f0ea 100%);
}

.music-card:hover {
    border-color: #e8d2c8;
    background: linear-gradient(135deg, #fff7f2 0%, #f7ebe4 100%);
}

.page-head h2::after {
    content: "♥";
    margin-left: 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 400;
    vertical-align: 2px;
    opacity: .75;
}

.stream {
    border: 1px solid rgba(80, 60, 40, .05);
    border-radius: 22px;
    margin-bottom: 36px;
    box-shadow: var(--shadow-card);
}

.stream > .post:first-child { border-radius: 22px 22px 0 0; }
.stream > .post:last-child { border-radius: 0 0 22px 22px; }

.post:hover { background: #fffefb; }

.post-avatar {
    border-radius: 11px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}

.post-imgs { gap: 6px; }
.ph { border-radius: 10px; }

.post-social {
    border: 1px solid rgba(80, 60, 40, .05);
    border-radius: 12px;
    background: var(--panel);
}

.cmt-form {
    align-items: center;
    margin-top: 6px;
    padding: 7px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .66);
}

.cmt-form input {
    height: 32px;
    border-color: transparent;
    border-radius: 8px;
    background: #fff;
}

.cmt-form input:focus {
    border-color: rgba(191, 125, 114, .48);
    box-shadow: 0 0 0 3px rgba(191, 125, 114, .1);
}

.cmt-form button {
    height: 32px;
    padding: 0 13px;
    border-radius: 8px;
    background: var(--accent);
}

.cmt-form button:hover { background: #ad6c62; }

.cmt-form .cmt-close {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
}

.cmt-form .cmt-close:hover {
    background: rgba(80, 60, 40, .08);
    color: var(--ink);
}

.more-menu { border-radius: 10px; }
.more-menu button { border-radius: 7px; }

.composer-card {
    width: min(580px, 100%);
    max-height: min(84vh, 680px);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 22px;
    background: var(--paper);
    box-shadow: 0 40px 100px -30px rgba(40, 28, 22, .42);
}

.composer-head {
    padding: 11px 16px;
    background: linear-gradient(180deg, #fffdfa 0%, #faf6f0 100%);
    border-bottom: 1px solid rgba(80, 60, 40, .07);
}

.composer-head h2 {
    font-size: 15px;
    letter-spacing: .06em;
}

.composer-cancel,
.composer-submit {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.composer-cancel { color: var(--ink-soft); }
.composer-cancel:hover { background: rgba(80, 60, 40, .06); color: var(--ink); }

.composer-submit {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 18px -12px rgba(191, 125, 114, .9);
}

.composer-submit:hover { background: #ad6c62; color: #fff; }

.composer-body { padding: 14px 16px 12px; }

.compose-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: var(--panel);
}

.compose-types label { display: flex; }

.compose-types span {
    width: 100%;
    padding: 7px 4px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ink-soft);
    font-size: 12.5px;
}

.compose-types input:checked + span {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 2px 8px -4px rgba(60, 40, 30, .45);
}

.composer-text {
    min-height: 56px;
    padding: 4px 2px 6px;
}

.compose-input {
    height: 36px;
    margin-top: 6px;
    border-radius: 10px;
    background: #faf8f4;
}

.compose-add {
    height: 78px;
    border-radius: 10px;
}

.compose-hint { margin-top: 7px; }

.compose-input,
.compose-add {
    border-color: #eae4dc;
    border-radius: 10px;
    background: #faf8f4;
}

.compose-input:focus {
    border-color: rgba(191, 125, 114, .55);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(191, 125, 114, .12);
}

.compose-add:hover {
    border-color: rgba(191, 125, 114, .55);
    background: #fdf8f4;
    color: var(--accent);
}

.profile-avatar { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05), 0 10px 24px -18px rgba(0, 0, 0, .5); }

.end {
    letter-spacing: .24em;
    color: #b6afa5;
}

.page-head h2 { letter-spacing: .08em; }

@media (min-width: 601px) {
    * { scrollbar-width: thin; scrollbar-color: #d8d0c5 transparent; }
    ::-webkit-scrollbar { width: 10px; height: 10px; }
    ::-webkit-scrollbar-thumb {
        border: 3px solid transparent;
        border-radius: 999px;
        background: #d8d0c5;
        background-clip: padding-box;
    }
    ::-webkit-scrollbar-track { background: transparent; }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 600px) {
    .cover { height: 300px; }

    .mn-inner { padding: 0 10px; }
    .mn-left { gap: 12px; }
    .mn-title { font-size: 16px; }
    .mn-links { gap: 10px; }
    .mn-links a { font-size: 12.5px; }

    .cover-quote {
        left: 14px;
        bottom: 18px;
        max-width: 42%;
    }

    .cover-line {
        font-size: 12.5px;
        line-height: 1.8;
        letter-spacing: .05em;
        -webkit-line-clamp: 3;
    }

    .cover-days { font-size: 10.5px; gap: 4px; }
    .cover-days b { font-size: 15px; }

    .cover-user { right: 14px; bottom: -26px; gap: 8px; }

    .cover-id { padding-bottom: 38px; }

    .cover-name { font-size: 16.5px; gap: 6px; letter-spacing: .12em; }
    .cover-name em { font-size: 13px; }
    .cover-sign { font-size: 10.5px; letter-spacing: .12em; }
    .cover-sign::before { width: 14px; }

    .cv { width: 56px; height: 56px; border-width: 2px; }
    .cv + .cv { margin-left: -12px; }

    .video-modal { padding: 12px; }
    .vm-stage { width: 100%; gap: 10px; }
    .vm-stage video { max-height: 70vh; border-radius: 14px; }
    .vm-close {
        top: 8px;
        right: 8px;
        background: rgba(0, 0, 0, .55);
        border-color: transparent;
    }

    .stream > .post:first-child { padding-top: 48px; }

    .post { padding: 18px 14px 16px; gap: 9px; }

    .post-name,
    .post-text { font-size: 15px; }

    .post-imgs.n9 { width: 300px; }
    .post-imgs.n2,
    .post-imgs.n4 { width: 216px; }
    .post-imgs.n1,
    .post-imgs.n1 .ph { width: 196px; height: 196px; }

    .cmt-form input[name="name"] { flex-basis: 64px; }

    .page { padding: 42px 14px 10px; }
    .page-head h2 { font-size: 17.5px; }
    .album-grid { gap: 2px; }
    .archive-item { gap: 9px; padding: 12px 2px; }
    .archive-day { flex-basis: 26px; font-size: 15px; }
    .archive-thumb { width: 48px; height: 48px; }

    .composer {
        align-items: flex-end;
        padding: 0;
    }
    .composer-card {
        width: 100%;
        max-height: 84vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(24px);
    }
    .composer-body { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
    .compose-grid { grid-template-columns: 1fr; }
    .compose-grid .compose-input { margin-top: 8px; }

    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
    .lb-close { top: 12px; right: 12px; }
}

@media (max-width: 600px) {
    .stream {
        margin: 0 6px 28px;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 18px 44px -36px rgba(48, 37, 28, .4);
    }

    .post { padding-left: 15px; padding-right: 15px; }
    .composer-card { border-radius: 18px 18px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cover-media,
    .post,
    .ph img,
    .compose-input {
        transition: none;
    }
}

/* ------------------------------------------------------------ 图片仅浏览 */

.post-imgs img,
.album-grid img,
.lb-stage img,
.archive-thumb,
.post-video {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

.post-imgs .ph img,
.lb-stage img {
    pointer-events: none;
}

/* ------------------------------------------------------------ 音乐播放 */

button.music-play {
    padding: 0;
    font: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.music-icon-pause { display: none; }

.music-card.is-playing .music-icon-play { display: none; }
.music-card.is-playing .music-icon-pause { display: block; margin-left: 0; }

.music-card:hover .music-play,
.music-card.is-playing .music-play {
    background: var(--link);
    border-color: var(--link);
    color: #fff;
}

.music-card.is-disabled { opacity: .72; }
.music-card.is-disabled .music-play { cursor: default; }
.music-audio { display: none; }

/* ------------------------------------------------------------ 上传预览 */

.compose-video-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 9px;
    padding: 9px;
    background: #faf7f3;
    border: 1px solid #ece5df;
    border-radius: 12px;
}

.compose-video-preview[hidden] { display: none; }

.compose-video-preview video {
    flex: 0 0 auto;
    width: 112px;
    height: 66px;
    object-fit: cover;
    background: #000;
    border-radius: 8px;
}

.compose-video-meta {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 11.5px;
    line-height: 1.6;
    color: #9a8f87;
}

.compose-video-meta b {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #4b423c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compose-video-remove {
    flex: 0 0 auto;
    padding: 5px 9px;
    font-size: 11.5px;
    color: #a08f86;
    background: transparent;
    border: 1px solid #e7ded7;
    border-radius: 8px;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.compose-video-remove:hover {
    color: #b4465f;
    border-color: #e3c3ca;
    background: #fdf3f5;
}

.compose-progress { margin-top: 12px; }
.compose-progress[hidden] { display: none; }

.compose-progress-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 11.5px;
    letter-spacing: .03em;
    color: #9a8f87;
}

.compose-progress-head em {
    font-style: normal;
    font-variant-numeric: tabular-nums;
    color: var(--link);
}

.compose-progress-track {
    height: 5px;
    overflow: hidden;
    background: #f0e9e3;
    border-radius: 999px;
}

.compose-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d9a79c, var(--link));
    transition: width .15s linear;
}

@media (max-width: 480px) {
    .compose-video-preview video { width: 92px; height: 56px; }
}

/* ------------------------------------------------------------ 桌面双栏 */

@media (min-width: 981px) {
    .mn-inner {
        max-width: 1140px;
        padding: 0 20px;
    }

    .layout {
        display: grid;
        grid-template-columns: 336px minmax(0, 1fr);
        gap: 28px;
        align-items: start;
        max-width: 1140px;
        margin: 26px auto 48px;
        padding: 0 20px;
    }

    .cover {
        position: sticky;
        top: 74px;
        height: clamp(480px, calc(100vh - 118px), 620px);
        overflow: hidden;
        border-radius: 22px;
        background: #4b4642;
        box-shadow:
            0 30px 64px -42px rgba(53, 40, 32, .6),
            0 0 0 1px rgba(60, 45, 35, .06);
    }

    .cover-media { transform: scale(1.03); }

    .cover-veil {
        background:
            linear-gradient(180deg, rgba(24, 16, 12, .42) 0%, rgba(24, 16, 12, .04) 30%, rgba(24, 16, 12, .18) 58%, rgba(24, 16, 12, .68) 100%);
    }

    .cover-inner {
        display: flex;
        flex-direction: column;
        max-width: none;
        padding: 28px 24px 24px;
    }

    .cover-quote {
        position: static;
        max-width: none;
        margin: 0;
        padding: 10px 0 0 15px;
        border-left-color: rgba(255, 255, 255, .46);
        border-radius: 0;
        background: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .cover-mark { font-size: 30px; }

    .cover-line {
        font-size: 15px;
        line-height: 1.95;
        -webkit-line-clamp: 6;
    }

    .cover-days {
        margin-top: 18px;
        background: rgba(255, 255, 255, .1);
    }

    .cover-user {
        position: static;
        margin-top: auto;
        padding-top: 26px;
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 18px;
    }

    .cover-id {
        width: 100%;
        padding-bottom: 0;
        text-align: left;
    }

    .cover-name {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 6px 8px;
        font-size: 20px;
        line-height: 1.35;
        white-space: normal;
    }

    .cover-sign {
        justify-content: flex-start;
        gap: 8px;
        line-height: 1.7;
        white-space: normal;
    }

    .cover-sign::before { flex: 0 0 auto; }

    .cover-avatars { padding-left: 2px; }

    .cv {
        width: 74px;
        height: 74px;
        border-radius: 50%;
    }

    .cv + .cv { margin-left: -18px; }

    .layout-main { min-width: 0; }

    .stream {
        max-width: none;
        margin: 0 0 20px;
    }

    .stream > .post:first-child { padding-top: 24px; }
    .post { padding: 22px 24px 20px; }

    .layout-main .page {
        max-width: none;
        padding: 30px 26px 18px;
        border: 1px solid rgba(80, 60, 40, .05);
        border-radius: 22px;
        box-shadow: var(--shadow-card);
    }

    .layout-main .end {
        margin: 20px 0 0;
        text-align: center;
    }
}

/* ------------------------------------------------------------ 手机端防溢出 */

@media (max-width: 600px) {
    .mn-left { flex: 1 1 auto; min-width: 0; }

    .mn-title {
        flex: 0 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mn-links { flex: 0 0 auto; }

    .cover-user {
        left: 14px;
        right: 14px;
        gap: 8px;
        justify-content: space-between;
    }

    .cover-id {
        flex: 1 1 auto;
        min-width: 0;
        padding-bottom: 34px;
    }

    .cover-name {
        flex-wrap: wrap;
        gap: 4px 6px;
        font-size: 15.5px;
        line-height: 1.35;
        white-space: normal;
    }

    .cover-sign {
        flex-wrap: wrap;
        line-height: 1.6;
        white-space: normal;
    }

    .cover-avatars { flex: 0 0 auto; }

    .cover-quote {
        max-width: calc(100% - 28px);
        width: max-content;
    }

    .cover-line { max-width: 100%; }

    .post-body,
    .post-text,
    .post-name,
    .comment-list,
    .cmt {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .post-imgs,
    .post-imgs.n1,
    .post-imgs.n2,
    .post-imgs.n4,
    .post-imgs.n9,
    .post-imgs.n1 .ph {
        max-width: 100%;
    }

    .music-card { max-width: 100%; }

    .compose-grid { min-width: 0; }
    .compose-grid > * { min-width: 0; }

    .cmt-as { max-width: 72px; }

    .archive-title,
    .archive-meta { min-width: 0; }

    .page,
    .stream { max-width: 100%; }

    .composer-body,
    .profile-card .composer-body { padding-left: 14px; padding-right: 14px; }

    .lb-stage,
    .vm-stage { max-width: 100%; }

    .toast { max-width: calc(100vw - 32px); }
}

/* ============================================================
   Cover identity spacing
   ============================================================ */

.cover-id {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cover-name {
    margin: 0;
    line-height: 1.4;
}

.cover-sign {
    margin: 0;
    min-height: 1.3em;
}

@media (min-width: 981px) {
    .cover-id {
        gap: 8px;
        padding-bottom: 0;
    }
}

@media (max-width: 680px) {
    .cover-id {
        gap: 5px;
        padding-bottom: 36px;
    }

    .cover-name { line-height: 1.35; }
}

/* ============================================================
   Album · independent entries
   ============================================================ */

.page-head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.album-create {
    flex: 0 0 auto;
    padding: 9px 16px;
    font-size: 12.5px;
    letter-spacing: .04em;
    color: #fff;
    background: linear-gradient(135deg, #c2607a, #a8547a);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 10px 22px -12px rgba(194, 96, 122, .8);
    transition: transform .16s ease, box-shadow .2s ease;
}

.album-create:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -12px rgba(194, 96, 122, .9);
}

.album-year { margin-top: 30px; }
.album-year:first-of-type { margin-top: 10px; }

.album-year .album-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 0 2px 11px;
    border-bottom: 1px solid var(--line);
}

.album-head h3 {
    margin: 0;
    font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--ink);
}

.album-head h3 i {
    margin-left: 3px;
    font-style: normal;
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--muted);
}

.album-head > span {
    font-size: 11.5px;
    letter-spacing: .08em;
    color: var(--muted);
}

.album-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}

.album-entry {
    padding: 16px;
    background: #fff;
    border: 1px solid #f1ece9;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .02);
}

.album-entry-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.album-author {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.album-avatar {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: #eef1ef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-avatar i {
    font-style: normal;
    font-size: 13px;
    font-weight: 600;
    color: #93a39b;
}

.album-author-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.album-author-meta b {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--link);
    line-height: 1.3;
}

.album-author-meta time {
    font-size: 10.5px;
    letter-spacing: .06em;
    color: var(--muted);
}

.album-del {
    padding: 6px 8px;
    font-size: 11px;
    color: #b9afaa;
    background: none;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease;
}

.album-del:hover {
    color: #c2607a;
    background: #fdf3f5;
}

.album-text {
    margin: 9px 0 10px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--ink);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.album-media {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    max-width: 560px;
    border-radius: 6px;
    overflow: hidden;
}

.album-media.one {
    grid-template-columns: minmax(0, 1fr);
    max-width: 340px;
}

.album-media.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 460px;
}

.album-ph {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    background: #f2f2f2;
    border: 0;
    cursor: pointer;
}

.album-media.one .album-ph { aspect-ratio: 4 / 3; }

.album-ph img,
.album-ph video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-ph.is-video { cursor: pointer; }

.album-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, .1);
    pointer-events: none;
}

.album-video-play svg {
    width: 46px;
    height: 46px;
    padding: 12px;
    fill: #fff;
    background: rgba(0, 0, 0, .4);
    border-radius: 50%;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.album-video-tag {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 2px 7px;
    font-size: 10px;
    letter-spacing: .06em;
    color: #fff;
    background: rgba(0, 0, 0, .45);
    border-radius: 6px;
    pointer-events: none;
}

.album-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
}

.album-preview:empty { display: none; }

.album-preview-item {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f2f2f2;
    border-radius: 9px;
}

.album-preview-item img,
.album-preview-item video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-preview-tag {
    position: absolute;
    left: 6px;
    bottom: 6px;
    padding: 1px 6px;
    font-style: normal;
    font-size: 10px;
    color: #fff;
    background: rgba(0, 0, 0, .45);
    border-radius: 5px;
}

.album-composer-card { max-width: 540px; }

/* ============================================================
   Floating music player
   ============================================================ */

.mp {
    position: fixed;
    left: 50%;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 11px;
    width: min(420px, calc(100vw - 32px));
    padding: 9px 12px 11px;
    overflow: hidden;
    color: #fff;
    background: rgba(32, 27, 30, .93);
    border-radius: 16px;
    box-shadow: 0 20px 48px -20px rgba(0, 0, 0, .65);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, calc(100% + 30px));
    transition: transform .3s cubic-bezier(.22, .9, .3, 1), opacity .25s ease, visibility .25s;
}

.mp.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.mp-cover {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 9px;
    background: linear-gradient(135deg, #8a6472, #5b556f);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-cover i {
    font-style: normal;
    font-size: 17px;
    color: rgba(255, 255, 255, .72);
}

.mp-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mp-info b {
    overflow: hidden;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mp-info span {
    overflow: hidden;
    font-size: 10.5px;
    color: rgba(255, 255, 255, .55);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mp-btn {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, .13);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.mp-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.mp-seek {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10px;
    cursor: pointer;
}

.mp-seek::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: rgba(255, 255, 255, .14);
}

.mp-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #e7a9b7;
    transition: width .18s linear;
}

body.has-mp { padding-bottom: 96px; }

@media (max-width: 640px) {
    .mp {
        bottom: calc(12px + env(safe-area-inset-bottom));
        width: calc(100vw - 24px);
        padding: 8px 10px 10px;
        border-radius: 14px;
    }

    .mp-cover {
        width: 36px;
        height: 36px;
    }

    .album-entry { padding: 13px; }
    .album-media { max-width: 100%; }
}

/* ============================================================
   Lazy media loading
   ============================================================ */

.ph,
.album-ph {
    background-image: linear-gradient(100deg, #f2f2f2 20%, #e9e9e9 40%, #f2f2f2 60%);
    background-size: 200% 100%;
    animation: phShimmer 1.5s linear infinite;
}

@keyframes phShimmer {
    to { background-position: -200% 0; }
}

.post-imgs img,
.album-ph img,
.album-ph video,
.album-preview-item img,
.album-preview-item video {
    animation: mediaFade .45s ease both;
}

@keyframes mediaFade {
    from { opacity: 0; transform: scale(1.015); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ph,
    .album-ph,
    .post-imgs img,
    .album-ph img,
    .album-ph video,
    .album-preview-item img,
    .album-preview-item video {
        animation: none;
    }
}

/* ============================================================
   2026 final visual polish
   ============================================================ */

body {
    background-image:
        radial-gradient(circle at 8% 0%, rgba(229, 204, 196, .2), transparent 32%),
        radial-gradient(circle at 94% 88%, rgba(211, 204, 224, .18), transparent 34%);
    background-attachment: fixed;
}

.mn.is-solid {
    background: rgba(255, 253, 250, .88);
    border-bottom: 1px solid rgba(91, 68, 58, .05);
    box-shadow: 0 8px 30px -24px rgba(65, 43, 35, .45);
}

/* Keep the nickname and signature in independent rows. */
.cover-id {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-content: end;
    padding: 13px 15px 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(30, 24, 22, .2), rgba(30, 24, 22, .08));
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.cover-name {
    position: static;
    display: flex;
    min-height: 1.4em;
    margin: 0;
    line-height: 1.4;
    letter-spacing: .1em;
}

.cover-sign {
    position: static;
    display: block;
    width: auto;
    max-width: 100%;
    margin: 10px 0 0;
    padding-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, .24);
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
}

.cover-sign::before { display: none; }

.cover-user { align-items: flex-end; }
.cover-quote { max-width: 56%; }
.cover-line { line-height: 1.9; }

.stream {
    background: rgba(255, 253, 250, .96);
    box-shadow: 0 24px 60px -42px rgba(72, 49, 40, .38);
}

.post {
    padding-top: 22px;
    padding-bottom: 22px;
    transition: background-color .2s ease;
}

.post-name { letter-spacing: .02em; }
.post-text { line-height: 1.76; }

.post-imgs .ph {
    box-shadow: 0 8px 20px -18px rgba(62, 42, 34, .8);
}

.ph img { transition: transform .35s ease, filter .25s ease; }
.ph:hover img { transform: scale(1.025); filter: saturate(1.04); }

.more-menu {
    border: 1px solid rgba(83, 60, 50, .06);
    box-shadow: 0 14px 34px -20px rgba(55, 37, 31, .55);
}

.post-social {
    border-color: rgba(96, 69, 57, .07);
    background: linear-gradient(135deg, #faf6f1, #f8f3ee);
}

.cmt {
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.cmt b { color: #9a675f; }

.cmt-form {
    gap: 8px;
    margin-top: 9px;
    padding: 8px;
    border: 1px solid rgba(160, 111, 99, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 10px 26px -24px rgba(82, 51, 43, .7);
}

.cmt-form.is-open { animation: cmtFormIn .18s ease both; }
.cmt-form.is-sending { opacity: .62; pointer-events: none; }

.cmt-form input {
    height: 36px;
    padding: 0 11px;
    border: 1px solid #eee4de;
    border-radius: 10px;
    background: #fbf8f5;
    font-size: 13px;
}

.cmt-form input[name="name"] { flex-basis: 84px; }
.cmt-form .cmt-text { min-width: 0; }

.cmt-form input:focus {
    border-color: rgba(177, 108, 96, .45);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(177, 108, 96, .09);
}

.cmt-form button[type="submit"] {
    height: 36px;
    padding: 0 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #bd7b70, #a86760);
    box-shadow: 0 8px 16px -12px rgba(157, 93, 83, .9);
    letter-spacing: .04em;
}

.cmt-form button[type="submit"]:hover { background: linear-gradient(135deg, #ad6c62, #98554f); }

.cmt-as {
    max-width: 82px;
    padding: 0 4px;
    color: #a36c62;
}

@keyframes cmtFormIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

.music-card {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 24px -22px rgba(104, 66, 53, .6);
}

.music-cover {
    box-shadow: 0 8px 18px -12px rgba(86, 56, 45, .45);
}

.mp {
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 18px;
    background: rgba(255, 253, 250, .9);
    box-shadow: 0 18px 50px -24px rgba(66, 43, 36, .48);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.album-entry {
    border: 1px solid rgba(83, 60, 50, .05);
    box-shadow: 0 18px 44px -38px rgba(72, 48, 40, .48);
}

.album-entry:hover { box-shadow: 0 22px 50px -36px rgba(72, 48, 40, .52); }

.composer-card,
.profile-card {
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: 0 30px 80px -34px rgba(53, 34, 29, .55);
}

.composer-submit,
.album-create {
    background: linear-gradient(135deg, #bd7b70, #a86760);
    box-shadow: 0 10px 20px -14px rgba(157, 93, 83, .9);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(177, 108, 96, .55);
    outline-offset: 3px;
}

@media (min-width: 981px) {
    .cover-id { max-width: 100%; }
    .cover-name { font-size: 21px; }
    .cover-sign { font-size: 11px; letter-spacing: .12em; }
}

@media (max-width: 680px) {
    .cover-id {
        width: 100%;
        padding: 10px 12px 9px;
        border-radius: 13px;
        background: linear-gradient(135deg, rgba(30, 24, 22, .24), rgba(30, 24, 22, .1));
    }

    .cover-name {
        font-size: 18px;
        line-height: 1.4;
        letter-spacing: .08em;
    }

    .cover-sign {
        margin-top: 8px;
        padding-top: 8px;
        font-size: 10.5px;
        line-height: 1.55;
        letter-spacing: .1em;
    }

    .cover-user { gap: 10px; }
    .cover-quote {
        top: 76px;
        bottom: auto;
        max-width: calc(100% - 28px);
    }
    .cover-line { -webkit-line-clamp: 2; }
    .cover-days { margin-top: 6px; }

    .post { padding-top: 19px; padding-bottom: 19px; }

    .cmt-form { flex-wrap: wrap; gap: 7px; }
    .cmt-form .cmt-text { flex: 1 1 132px; }
    .cmt-form button[type="submit"] { padding: 0 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .cmt-form.is-open,
    .ph img { animation: none; transition: none; }
}

/* ============================================================
   Refined polish · solid surfaces, no glass except together days
   ============================================================ */

/* Remove every frosted-blur effect; only .cover-days gets it back. */
.mn.is-solid,
.video-expand,
.video-badge,
.composer-mask,
.composer-head,
.profile-foot,
.toast,
.vm-mask,
.vm-close,
.lb-close,
.lb-prev,
.lb-next,
.cover-quote,
.album-video-play svg,
.cover-id,
.mp {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* Warm paper backdrop with a soft dot texture. */
body {
    background-color: #f1efec;
    background-image:
        radial-gradient(rgba(191, 125, 114, .06) 1px, transparent 1.4px),
        radial-gradient(900px 520px at 50% -8%, #fbf7f1 0%, rgba(251, 247, 241, 0) 62%),
        radial-gradient(circle at 8% 0%, rgba(229, 204, 196, .2), transparent 32%),
        radial-gradient(circle at 94% 88%, rgba(211, 204, 224, .18), transparent 34%),
        linear-gradient(180deg, #f3f1ee 0%, #eeece8 100%);
    background-size: 26px 26px, auto, auto, auto, auto;
    background-attachment: fixed;
}

/* Navigation: solid warm white with a hairline and a soft lift. */
.mn.is-solid {
    background: #fffdfa;
    color: var(--ink);
    border-bottom: 1px solid rgba(91, 68, 58, .07);
    box-shadow: 0 10px 26px -24px rgba(65, 43, 35, .5);
}

/* Cover identity plate: readable dark scrim instead of frosted glass. */
.cover-id {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(28, 21, 19, .54), rgba(28, 21, 19, .26));
}

/* The single intentional exception. */
.cover-days {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* Feed cards */
.stream,
.page {
    background: #fffdfa;
}

.stream {
    border: 1px solid rgba(80, 60, 40, .06);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
}

.stream > .post:first-child { border-radius: 22px 22px 0 0; }
.stream > .post:last-child { border-radius: 0 0 22px 22px; }
.post:hover { background: #fffefb; }

.post-avatar {
    border-radius: 11px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}

.post-imgs { gap: 6px; }
.post-imgs .ph {
    border-radius: 10px;
    box-shadow: 0 8px 20px -18px rgba(62, 42, 34, .8);
}

.post-social {
    border: 1px solid rgba(96, 69, 57, .07);
    border-radius: 12px;
    background: linear-gradient(135deg, #faf6f1, #f8f3ee);
}

.cmt b { color: #9a675f; }
.cmt-as { color: #a36c62; }

/* Comment box */
.cmt-form {
    border: 1px solid rgba(160, 111, 99, .14);
    border-radius: 14px;
    background: #fffdfb;
    box-shadow: 0 10px 26px -24px rgba(82, 51, 43, .7);
}

.cmt-form input {
    border: 1px solid #eee4de;
    border-radius: 10px;
    background: #fbf8f5;
}

.cmt-form input:focus {
    border-color: rgba(177, 108, 96, .45);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(177, 108, 96, .09);
}

.cmt-form button[type="submit"] {
    border-radius: 10px;
    background: linear-gradient(135deg, #bd7b70, #a86760);
    box-shadow: 0 8px 16px -12px rgba(157, 93, 83, .9);
}

.cmt-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #ad6c62, #98554f);
}

/* Music card keeps its warm paper gradient. */
.music-card {
    border-color: #f0e2da;
    border-radius: 14px;
    background: linear-gradient(135deg, #fffaf7 0%, #f9f0ea 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 24px -22px rgba(104, 66, 53, .6);
}

.music-card:hover {
    border-color: #e8d2c8;
    background: linear-gradient(135deg, #fff7f2 0%, #f7ebe4 100%);
}

.music-cover { box-shadow: 0 8px 18px -12px rgba(86, 56, 45, .45); }

.page-head h2::after {
    content: "♥";
    display: inline;
    margin-left: 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 400;
    vertical-align: 2px;
    opacity: .75;
}

/* Album */
.album-entry {
    border: 1px solid rgba(83, 60, 50, .05);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 44px -38px rgba(72, 48, 40, .48);
}

.album-entry:hover {
    border-color: rgba(83, 60, 50, .08);
    box-shadow: 0 22px 50px -36px rgba(72, 48, 40, .52);
}

/* Buttons keep the rose gradient rather than a flat fill. */
.album-create,
.composer-submit {
    background: linear-gradient(135deg, #bd7b70, #a86760);
    box-shadow: 0 10px 20px -14px rgba(157, 93, 83, .9);
}

.album-create:hover,
.composer-submit:hover {
    color: #fff;
    background: linear-gradient(135deg, #ad6c62, #98554f);
    box-shadow: 0 12px 22px -14px rgba(157, 93, 83, .95);
    transform: none;
}

/* Composer / profile dialogs */
.composer-card,
.profile-card {
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 22px;
    background: #fffdfa;
    box-shadow: 0 30px 80px -34px rgba(53, 34, 29, .55);
}

.composer-head,
.profile-foot {
    border-color: rgba(80, 60, 40, .07);
    background: linear-gradient(180deg, #fffdfa 0%, #faf6f0 100%);
}

.compose-types { background: #f7f3ed; }

.compose-types input:checked + span {
    color: var(--ink);
    background: #fff;
    box-shadow: 0 2px 8px -4px rgba(60, 40, 30, .45);
}

.compose-input,
.compose-add,
.compose-field .composer-text {
    border-color: #eae4dc;
    border-radius: 10px;
    background: #faf8f4;
}

.compose-input:focus,
.compose-field .composer-text:focus {
    border-color: rgba(191, 125, 114, .55);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(191, 125, 114, .12);
}

.compose-add:hover {
    border-color: rgba(191, 125, 114, .55);
    color: var(--accent);
    background: #fdf8f4;
}

.compose-progress-track { background: #efe9e2; }
.compose-progress-bar { background: var(--accent); }

/* Overlays */
.toast { background: #2a2421; }
.toast.error { background: #b6493f; }
.composer-mask { background: rgba(28, 20, 17, .5); }
.vm-mask { background: rgba(18, 12, 10, .94); }

/* Floating player: solid warm card, no glass. */
.mp {
    color: var(--ink);
    border: 1px solid #f0e6df;
    border-radius: 18px;
    background: #fffdfb;
    box-shadow: 0 18px 50px -24px rgba(66, 43, 36, .45);
}

.mp-cover {
    color: #fff;
    background: linear-gradient(135deg, #c98b7f, #9d7684);
}

.mp-info span { color: #9a908a; }
.mp-btn { color: #fff; background: linear-gradient(135deg, #bd7b70, #a86760); }
.mp-seek::before { background: #eee4dd; }
.mp-bar { background: #bd7b70; }

/* Focus + selection */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid rgba(191, 125, 114, .55);
    outline-offset: 3px;
}

::selection { color: #5f3f3a; background: rgba(191, 125, 114, .24); }

/* Desktop card treatment */
@media (min-width: 981px) {
    /* The nav no longer sits on top of the cover here, so keep it readable. */
    .mn {
        background: #fffdfa;
        color: var(--ink);
        border-bottom: 1px solid rgba(91, 68, 58, .07);
        box-shadow: 0 10px 26px -26px rgba(65, 43, 35, .4);
    }

    .mn .mn-title,
    .mn .mn-btn svg { text-shadow: none; filter: none; }

    .mn .mn-me { border-color: rgba(0, 0, 0, .12); }

    .mn .mn-btn:hover,
    .mn:not(.is-solid) .mn-btn:hover { background: rgba(80, 60, 40, .06); }

    .layout-main .page {
        border: 1px solid rgba(80, 60, 40, .06);
        border-radius: 22px;
        box-shadow: var(--shadow-card);
    }
}

/* Phone */
@media (max-width: 680px) {
    .cover-media { transform: none; }

    /* Let the darkened photo carry the text instead of a heavy glass plate. */
    .cover-id {
        width: 100%;
        padding: 10px 12px 35px;
        border-color: transparent;
        border-radius: 13px;
        background: none;
    }
}

@media (max-width: 600px) {
    .stream {
        margin: 0 0 24px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .stream > .post:first-child,
    .stream > .post:last-child { border-radius: 0; }

    .composer-card {
        border-radius: 22px 22px 0 0;
        border-bottom: 0;
    }
}

/* ============================================================
   Together timer · rainbow gradient digits
   ============================================================ */

.cover-days {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-top: 11px;
    padding: 9px 14px 10px;
    border-color: rgba(255, 255, 255, .22);
    background: rgba(22, 16, 14, .34);
}

.cover-days-label {
    display: block;
    margin: 0 0 4px;
    font-size: 9.5px;
    line-height: 1;
    letter-spacing: .22em;
    color: rgba(255, 255, 255, .68);
}

.cover-timer {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 10px;
}

.cover-timer-part {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
}

.cover-timer b {
    font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: .01em;
    font-variant-numeric: tabular-nums;
    background-image: linear-gradient(90deg, #ff9aa2, #ffb347, #ffe066, #7cf29b, #6ec6ff, #c89bff, #ff9aa2);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 1px 3px rgba(12, 8, 6, .7));
    animation: timerRainbow 9s linear infinite;
}

.cover-timer i {
    margin: 0;
    font-style: normal;
    font-size: 10px;
    line-height: 1;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .8);
    opacity: 1;
}

@keyframes timerRainbow {
    from { background-position: 0 0; }
    to { background-position: 220% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cover-timer b { animation: none; }
}

@media (max-width: 680px) {
    .cover-days { padding: 6px 10px 7px; }
    .cover-timer { gap: 1px 6px; }
    .cover-timer b { font-size: 15px; }
    .cover-timer i { font-size: 9px; }
}

/* ============================================================
   Cover hero · two large avatars with a heart between them
   ============================================================ */

.cover-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    max-width: none;
    padding: 64px 16px 22px;
}

.cover-hero {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(18px, 7vw, 54px);
    width: 100%;
}

.cover-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.cover-avatar {
    width: 94px;
    height: 94px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9e4df;
    border: 3px solid rgba(255, 255, 255, .92);
    box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .6);
}

.cover-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-avatar i {
    font-style: normal;
    font-size: 30px;
    font-weight: 600;
    color: #9aa8a1;
}

.cover-person-name {
    max-width: 120px;
    padding: 3px 12px;
    border-radius: 999px;
    background: rgba(16, 12, 11, .62);
    color: #fff;
    font-size: 11.5px;
    line-height: 1.6;
    letter-spacing: .06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cover-heart {
    align-self: flex-start;
    margin-top: 26px;
    font-size: 42px;
    line-height: 1;
    letter-spacing: 0;
    color: #ff5f7e;
    opacity: 1;
    transform: none;
    text-shadow: 0 2px 14px rgba(255, 95, 126, .55);
}

.cover-quote {
    position: static;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    text-align: center;
}

.cover-mark { display: none; }

.cover-line {
    margin: 0 auto;
    max-width: 32em;
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .55);
    -webkit-line-clamp: 2;
}

.cover-days {
    margin: 12px auto 0;
}

.cover-sign {
    justify-content: center;
    margin: 10px 0 0;
    padding: 0;
    border: 0;
    text-align: center;
    font-size: 10.5px;
    letter-spacing: .18em;
    color: rgba(255, 255, 255, .74);
}

@media (max-width: 680px) {
    .cover { height: 348px; }

    .cover-inner {
        padding: 60px 14px 16px;
        gap: 12px;
    }

    .cover-hero { gap: 22px; }

    .cover-avatar {
        width: 76px;
        height: 76px;
        border-width: 2.5px;
    }

    .cover-avatar i { font-size: 26px; }

    .cover-person-name {
        max-width: 96px;
        padding: 2px 10px;
        font-size: 10.5px;
    }

    .cover-heart {
        margin-top: 24px;
        font-size: 25px;
    }

    .cover-line {
        max-width: 23em;
        font-size: 13px;
        line-height: 1.75;
    }

    .cover-days { margin-top: 10px; }

    .cover-sign {
        margin-top: 8px;
        font-size: 10px;
    }
}

/* ============================================================
   Typography & palette · Inter + Noto Serif, warm pink accent
   ============================================================ */

:root {
    --bg: #ffffff;
    --paper: #ffffff;
    --ink: #1f2937;
    --ink-soft: #44403c;
    --muted: #8b8b8b;
    --line: #f0f0f0;
    --panel: #fafafa;
    --link: #ec4899;
    --accent: #f87171;
    --accent-2: #ec4899;
    --grad: linear-gradient(135deg, #f87171, #ec4899);
    --serif: "Noto Serif SC", "Songti SC", "Noto Serif", "STSong", serif;
    --script: "Dancing Script", "Cormorant Garamond", "Segoe UI Script", cursive;
}

body {
    background: #fff;
    background-image: radial-gradient(rgba(0, 0, 0, .04) 1px, rgba(255, 255, 255, 0) 1px);
    background-size: 10px 10px;
    color: var(--ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 15px;
}

.page-head h2,
.month-head h3,
.album-head h3,
.empty h2,
.cover-line,
.cover-days-label,
.cover-sign {
    font-family: var(--serif);
}

.page-head h2 { letter-spacing: .08em; }
.month-head h3,
.album-head h3 { letter-spacing: .06em; }

.post-text { color: var(--ink); }
.post-name { color: var(--link); }
.post-name:hover { color: #d63384; }

.stream {
    border-color: var(--line);
}

.post-social {
    background: var(--panel);
}

.cmt-form {
    border-color: #ededed;
    background: #fff;
}

.cmt-form input {
    border-color: #ececec;
    background: #fafafa;
}

.cmt-form input:focus {
    border-color: #f9a8c9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, .1);
}

.cmt-form button[type="submit"],
.album-create,
.composer-submit,
.empty-link {
    color: #fff;
    border: 0;
    border-radius: 999px;
    background: var(--grad);
    box-shadow: 0 10px 22px -14px rgba(236, 72, 153, .85);
}

.cmt-form button[type="submit"]:hover,
.album-create:hover,
.composer-submit:hover,
.empty-link:hover {
    color: #fff;
    background: var(--grad);
    filter: brightness(1.04);
    box-shadow: 0 12px 26px -14px rgba(236, 72, 153, .9);
    transform: none;
}

.mn-links a.is-active {
    padding: 5px 12px;
    border-radius: 999px;
    color: #fff;
    background: var(--grad);
    opacity: 1;
    box-shadow: 0 8px 18px -12px rgba(236, 72, 153, .9);
}

.mn-links a.is-active::after { display: none; }
.mn-links a.is-active:hover { color: #fff; }

.mn-me { border-color: rgba(236, 72, 153, .35); }
.mn.is-solid .mn-me { border-color: rgba(236, 72, 153, .3); }

.music-card,
.music-card:hover {
    border-color: #f4edf0;
    background: linear-gradient(135deg, rgba(248, 113, 113, .07), rgba(236, 72, 153, .06));
}

.music-cover {
    color: #fff;
    background: var(--grad);
}

.music-play {
    color: #fff;
    background: var(--grad);
}

.mp-btn { background: var(--grad); }
.mp-bar { background: var(--grad); }
.mp-cover { color: var(--accent-2); background: #fdf2f8; }

.album-entry { border-color: var(--line); }

.cover-person-name {
    padding: 2px 14px;
    border-radius: 999px;
    background: rgba(17, 17, 17, .72);
    font-family: var(--script);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.6;
}

.cover-timer-part b {
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
}

.composer-card,
.profile-card { border-color: #ececec; }

.compose-types { background: #f6f6f6; }
.compose-types input:checked + span { color: var(--ink); background: #fff; }

.compose-input,
.compose-add,
.compose-field .composer-text {
    border-color: #ececec;
    background: #fafafa;
}

.compose-input:focus,
.compose-field .composer-text:focus {
    border-color: #f9a8c9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, .1);
}

.compose-add:hover {
    border-color: #f9a8c9;
    color: var(--accent-2);
    background: #fdf2f8;
}

.compose-progress-bar { background: var(--grad); }

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline-color: rgba(236, 72, 153, .45);
}

::selection {
    color: var(--ink);
    background: #fce7f3;
}

@media (max-width: 680px) {
    .cover-person-name { font-size: 13.5px; padding: 1px 12px; }
    .mn-links a.is-active { padding: 4px 10px; }
}

/* ============================================================
   Heart icon & floating dock
   ============================================================ */

.cover-heart {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    font-size: 0;
    color: transparent;
    filter: drop-shadow(0 8px 16px rgba(255, 61, 127, .35));
}

.cover-heart svg {
    display: block;
    width: 100%;
    height: 100%;
}

body {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.dock {
    position: fixed;
    left: 50%;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 65;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 7px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 999px;
    box-shadow: 0 16px 36px -20px rgba(31, 41, 55, .32), 0 2px 8px rgba(0, 0, 0, .03);
}

.dock-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 999px;
    color: #6f6f6f;
    font-size: 12.5px;
    line-height: 1;
    letter-spacing: .02em;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease;
}

.dock-item svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dock-item:hover {
    color: var(--accent-2);
    background: #fdf2f8;
}

.dock-item.is-active {
    color: #fff;
    background: var(--grad);
    box-shadow: 0 8px 18px -12px rgba(236, 72, 153, .9);
}

.dock-item.is-active svg { stroke: #fff; }

.mp {
    bottom: calc(96px + env(safe-area-inset-bottom));
    color: var(--ink);
    background: #fff;
    border: 1px solid #f2eaed;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 18px 44px -26px rgba(31, 41, 55, .35);
}

@media (max-width: 680px) {
    .cover-heart {
        width: 26px;
        height: 26px;
        margin-top: 24px;
    }

    .dock {
        gap: 0;
        padding: 6px;
        width: calc(100vw - 28px);
        max-width: 360px;
        justify-content: space-between;
    }

    .dock-item {
        flex: 1 1 0;
        justify-content: center;
        padding: 9px 4px;
        font-size: 12px;
        gap: 6px;
    }

    .dock-item svg {
        width: 17px;
        height: 17px;
    }

    body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* ============================================================
   Page loader · triple ring spinner
   ============================================================ */

#loader-wrapper {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    transition: opacity .45s ease, visibility .45s ease;
}

.loader-section {
    position: absolute;
    inset: 0;
    background: #fff;
}

#loader {
    position: relative;
    z-index: 1;
    width: 150px;
    height: 150px;
    border: 3px solid transparent;
    border-top-color: #16a085;
    border-radius: 50%;
    animation: ldr-spin 1.7s linear infinite;
}

#loader::before,
#loader::after {
    content: "";
    position: absolute;
    border: 3px solid transparent;
    border-radius: 50%;
}

#loader::before {
    inset: 5px;
    border-top-color: #e74c3c;
    animation: ldr-spin-rev .6s linear infinite;
}

#loader::after {
    inset: 15px;
    border-top-color: #f9c922;
    animation: ldr-spin 1s linear infinite;
}

@keyframes ldr-spin {
    to { transform: rotate(360deg); }
}

@keyframes ldr-spin-rev {
    to { transform: rotate(-360deg); }
}

body.is-loaded #loader-wrapper {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 680px) {
    #loader {
        width: 112px;
        height: 112px;
    }

    #loader::before { inset: 4px; }
    #loader::after { inset: 12px; }
}

/* ============================================================
   Blessings · message board
   ============================================================ */

body.modal-lock { overflow: hidden; }

.msg-hero {
    padding: 6px 0 22px;
    text-align: center;
}

.msg-hero-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    background: var(--grad);
    border-radius: 50%;
    box-shadow: 0 10px 20px -12px rgba(236, 72, 153, .9);
}

.msg-hero h2 {
    margin: 10px 0 7px;
    color: #1a1a1a;
    font-family: var(--serif);
    font-size: 29px;
    font-weight: 600;
    letter-spacing: .07em;
}

.msg-hero p {
    margin: 0;
    color: #a99fa4;
    font-size: 12px;
    letter-spacing: .05em;
}

.msg-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.msg-card {
    position: relative;
    padding: 14px 14px 8px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 48px -32px rgba(31, 41, 55, .38), 0 2px 8px -4px rgba(31, 41, 55, .05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.msg-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 54px -30px rgba(31, 41, 55, .42), 0 2px 10px -4px rgba(31, 41, 55, .06);
}

.msg-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.msg-avatar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #b9637f;
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 600;
    border-radius: 50%;
    background: linear-gradient(140deg, #ffe5ee, #ffd2e1);
}

.msg-avatar.t-mint  { color: #4f8d70; background: linear-gradient(140deg, #e4f8ec, #cfefdd); }
.msg-avatar.t-lilac { color: #7a63a8; background: linear-gradient(140deg, #f0e7fc, #e1d3f7); }
.msg-avatar.t-peach { color: #b57c46; background: linear-gradient(140deg, #fff0e0, #ffe1c9); }

.msg-who {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.msg-name {
    overflow: hidden;
    color: #3b434b;
    font-family: var(--script), var(--serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.msg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.msg-tag {
    padding: 1px 6px;
    color: #e26a92;
    font-style: normal;
    font-size: 9.5px;
    letter-spacing: .04em;
    line-height: 1.6;
    background: #fdf0f5;
    border: 1px solid #fbe0ea;
    border-radius: 6px;
}

.msg-tag--id {
    color: #a99ca3;
    background: #f8f6f7;
    border-color: #f1ebef;
}

.msg-tag--loc {
    color: #2f6fd0;
    background: #eef4ff;
    border-color: #dfe9fb;
}

.msg-time {
    flex: 0 0 auto;
    align-self: flex-start;
    padding-top: 2px;
    color: #bcb3b8;
    font-size: 10.5px;
    letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
}

.msg-body {
    margin-top: 11px;
    color: #6f6e6e;
    font-size: 14.5px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.msg-reply {
    margin-top: 10px;
    padding: 9px 12px;
    background: #fdf4f8;
    border: 1px solid #fbe7ef;
    border-radius: 10px;
}

.msg-reply-label {
    display: block;
    margin-bottom: 3px;
    color: #e26a92;
    font-size: 10.5px;
    letter-spacing: .06em;
}

.msg-reply p {
    margin: 0;
    color: #7d6571;
    font-size: 13px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.msg-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    padding: 9px 0 4px;
    border-top: 1px solid #f6f1f3;
}

.msg-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #b3a9ae;
    font-size: 11.5px;
}

.msg-meta svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.msg-foot-act {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.msg-link {
    padding: 0;
    color: #cbbfc5;
    font-size: 11.5px;
    background: none;
    border: 0;
    cursor: pointer;
    transition: color .16s ease;
}

.msg-link:hover { color: #ec4899; }
.msg-link--del:hover { color: #e05252; }

.msg-reply-form {
    display: flex;
    gap: 8px;
    margin: 10px 0 6px;
    padding-top: 10px;
    border-top: 1px dashed #f3eaef;
}

.msg-reply-form[hidden] { display: none; }

.msg-reply-form input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 11px;
    color: #1f2937;
    font: inherit;
    font-size: 12.5px;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 9px;
    outline: none;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.msg-reply-form input:focus {
    background: #fff;
    border-color: #f9a8c9;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, .1);
}

.msg-reply-form button {
    flex: 0 0 auto;
    padding: 0 16px;
    color: #fff;
    font-size: 12.5px;
    background: var(--grad);
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}

/* ---------- floating write button ---------- */

.msg-fab {
    position: fixed;
    left: 50%;
    bottom: calc(92px + env(safe-area-inset-bottom));
    z-index: 70;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 22px;
    color: #fff;
    font-size: 13.5px;
    letter-spacing: .08em;
    background: var(--grad);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 16px 32px -14px rgba(236, 72, 153, .85);
    cursor: pointer;
    transform: translateX(-50%);
    transition: transform .18s ease, box-shadow .18s ease;
}

.msg-fab:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 20px 38px -14px rgba(236, 72, 153, .9);
}

.msg-fab svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

/* ---------- write dialog ---------- */

.bl-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .22s ease, visibility .22s ease;
}

.bl-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.bl-mask {
    position: absolute;
    inset: 0;
    background: rgba(24, 20, 22, .45);
}

.bl-dialog {
    position: relative;
    width: min(440px, 100%);
    max-height: calc(100vh - 40px);
    padding: 22px;
    overflow: auto;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 30px 70px -30px rgba(31, 41, 55, .5);
    transform: translateY(12px) scale(.99);
    transition: transform .22s ease;
}

.bl-modal.is-open .bl-dialog { transform: none; }

.bl-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.bl-head h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #1f2937;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .06em;
}

.bl-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    color: #ec4899;
    background: linear-gradient(135deg, #fff1f2, #fce7f3);
}

.bl-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bl-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: #b8b8b8;
    background: #f7f7f7;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease;
}

.bl-close:hover { color: #6f6f6f; background: #f0f0f0; }

.bl-field {
    display: block;
    margin-top: 12px;
}

.bl-field span {
    display: block;
    margin-bottom: 6px;
    color: #8b8b8b;
    font-size: 11.5px;
    letter-spacing: .04em;
}

.bl-field input,
.bl-field textarea {
    width: 100%;
    padding: 10px 12px;
    color: #1f2937;
    font: inherit;
    font-size: 13.5px;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 10px;
    outline: none;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.bl-field textarea {
    min-height: 110px;
    line-height: 1.7;
    resize: vertical;
}

.bl-field input:focus,
.bl-field textarea:focus {
    background: #fff;
    border-color: #f9a8c9;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, .1);
}

.bl-count {
    margin-top: 6px;
    color: #b5b5b5;
    font-size: 11px;
    text-align: right;
}

.bl-error {
    margin: 8px 0 0;
    color: #e05252;
    font-size: 12.5px;
}

.bl-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.bl-cancel {
    padding: 9px 18px;
    color: #6f6f6f;
    font-size: 13px;
    background: #f7f7f7;
    border: 1px solid #ececec;
    border-radius: 999px;
    cursor: pointer;
}

.bl-save {
    padding: 9px 24px;
    color: #fff;
    font-size: 13px;
    background: var(--grad);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 10px 22px -14px rgba(236, 72, 153, .85);
    cursor: pointer;
}

.bl-save:disabled { opacity: .6; cursor: default; }

@media (max-width: 980px) {
    .msg-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .msg-hero { padding: 2px 0 16px; }
    .msg-hero h2 { margin: 8px 0 6px; font-size: 21px; letter-spacing: .05em; }
    .msg-hero p { font-size: 11px; }
    .msg-hero-mark { width: 30px; height: 30px; font-size: 12px; }

    .msg-grid { gap: 13px; }
    .msg-card { padding: 13px 13px 6px; border-radius: 13px; }
    .msg-avatar { width: 38px; height: 38px; font-size: 15px; }
    .msg-name { font-size: 16px; }
    .msg-time { font-size: 10px; }
    .msg-body { font-size: 14px; line-height: 1.85; }

    .msg-fab { bottom: calc(84px + env(safe-area-inset-bottom)); padding: 10px 20px; font-size: 13px; }

    .bl-dialog { padding: 18px; border-radius: 20px; }

    .dock-item {
        flex-direction: column;
        gap: 3px;
        padding: 7px 2px;
        font-size: 10.5px;
        line-height: 1.1;
    }

    .dock-item svg {
        width: 19px;
        height: 19px;
    }

    body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* leave room for the floating write button */
.page--msg { padding-bottom: 140px; }

@media (max-width: 680px) {
    .page--msg { padding-bottom: 150px; }
}

/* ---------- QQ avatar in leave-message --- */
.msg-avatar--img {
    padding: 0;
    overflow: hidden;
    background: #f3f4f6;
}

.msg-avatar--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bl-qq {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 14px;
}

.bl-qq-avatar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-top: 18px;
    overflow: hidden;
    color: #ec4899;
    font-size: 19px;
    background: linear-gradient(135deg, #fff1f2, #fce7f3);
    border: 1px solid #fbd5e5;
    border-radius: 50%;
}

.bl-qq-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bl-qq-avatar i { font-style: normal; }

.bl-field--qq { flex: 1 1 auto; min-width: 0; }

.bl-field em {
    display: block;
    margin-top: 5px;
    color: #b3b3b3;
    font-size: 11.5px;
    font-style: normal;
}

@media (max-width: 680px) {
    .bl-qq { gap: 10px; }
    .bl-qq-avatar { width: 46px; height: 46px; margin-top: 16px; font-size: 17px; }
}

/* ---------- iconfont heart · slow beat ---------- */
.cover-heart {
    transform-origin: 50% 56%;
    will-change: transform;
    animation: cover-heart-beat 2.6s ease-in-out infinite;
}

@keyframes cover-heart-beat {
    0%, 100% { transform: scale(1); }
    10%      { transform: scale(1.1); }
    22%      { transform: scale(1.01); }
    34%      { transform: scale(1.07); }
    48%      { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .cover-heart { animation: none; }
}

/* pixel heart image */
.cover-heart img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================================
   2026-11 · 动态卡片与发布弹窗优化
   ============================================================ */

.post .post-name {
    color: #141414;
}

.post .post-name .post-pin {
    display: inline-block;
    margin-right: 7px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    background: linear-gradient(135deg, #ff8faa, #ffb083);
    vertical-align: 1px;
}

.post-meta .loc {
    color: #2f6fd0;
}

/* 朋友圈式发布弹窗 */
.composer-card {
    max-width: 620px;
    border-radius: 18px;
    overflow: hidden;
}

.composer-head {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f1f5;
}

.compose-author {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.compose-avatar {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd8e2, #ffe9d6);
    color: #c05a78;
    font-weight: 700;
}

.compose-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.compose-main {
    flex: 1;
    min-width: 0;
}

.composer-text {
    width: 100%;
    min-height: 116px;
    border: 0;
    padding: 4px 2px;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    background: transparent;
}

.composer-text:focus {
    outline: none;
}

.compose-types {
    display: flex;
    gap: 8px;
    margin: 4px 0 10px;
    flex-wrap: wrap;
}

.compose-types span {
    padding: 5px 12px;
    border-radius: 999px;
    background: #f5f6f9;
    color: #666;
    font-size: 12.5px;
}

.compose-types input:checked + span {
    background: #eaf6ee;
    color: #1d9e55;
    font-weight: 600;
}

.compose-panel {
    margin-top: 10px;
}

.compose-add {
    width: 86px;
    height: 86px;
    border-radius: 10px;
    border: 1px dashed #dcdfe7;
    background: #fafbfd;
}

.compose-add span {
    font-size: 12.5px;
    color: #8b90a0;
}

.compose-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.compose-preview img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
}

.compose-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.compose-input {
    border: 0;
    background: #f5f6f9;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 13.5px;
}

.compose-input:focus {
    outline: none;
    background: #eef0f5;
}

.composer-submit {
    min-width: 68px;
}

@media (max-width: 640px) {
    .composer {
        align-items: flex-end;
    }

    .composer-card {
        width: 100%;
        max-width: none;
        max-height: 92vh;
        border-radius: 18px 18px 0 0;
    }

    .compose-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* ------------------------------------------------------------ 长文收起展开 */

.post-text-wrap .post-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    overflow: hidden;
}

.post-text-wrap.is-expanded .post-text {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.post-text-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: #576b95;
    font-size: 14px;
    line-height: 1.6;
    cursor: pointer;
}

.post-text-more::after {
    content: '';
    width: 6px;
    height: 6px;
    margin-top: -2px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .18s ease;
}

.post-text-wrap.is-expanded .post-text-more::after {
    margin-top: 3px;
    transform: rotate(-135deg);
}

.post-text-more:not([hidden]) {
    display: inline-flex;
}

.post-text-more[hidden] {
    display: none;
}

/* ------------------------------------------------------------ 发布预览缩略图 */

.compose-preview {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: none;
    gap: 6px;
    margin-top: 8px;
    max-height: 166px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
}

.compose-preview img {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 8px;
}

.compose-video-preview video {
    width: 96px;
    height: 56px;
}

@media (max-width: 640px) {
    .compose-preview {
        gap: 5px;
        max-height: 148px;
    }

    .compose-preview img {
        width: 62px;
        height: 62px;
        border-radius: 7px;
    }

    .compose-video-preview video {
        width: 84px;
        height: 50px;
    }
}

/* ------------------------------------------------------------ 相册发布弹窗 */

.album-composer-card {
    display: flex;
    flex-direction: column;
    max-height: min(86vh, 720px);
    max-height: min(86dvh, 720px);
    overflow: hidden;
}

.album-composer-card .composer-head {
    position: relative;
    flex: 0 0 auto;
}

.album-composer-card .composer-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.album-composer-card .composer-text {
    min-height: 72px;
}

.album-preview {
    max-height: 224px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

@media (max-width: 640px) {
    .album-composer-card {
        max-height: 92vh;
        max-height: 92dvh;
    }

    .album-preview {
        max-height: 190px;
    }
}

/* ------------------------------------------------------------ 昵称后的 IP 属地 */

.ip-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 7px;
    padding: 1px 8px 1px 6px;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.75;
    letter-spacing: .02em;
    color: #a4737d;
    white-space: nowrap;
    vertical-align: 1px;
    background: linear-gradient(135deg, #fdf4f6, #f7ecec);
    border: 1px solid rgba(194, 96, 122, .14);
    border-radius: 20px;
}

.ip-chip svg {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    opacity: .68;
}

/* ------------------------------------------------------------ 桌面侧栏 */

.rail { display: none; }

.rail-card {
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow:
        0 18px 40px -34px rgba(60, 42, 34, .55),
        0 0 0 1px rgba(83, 60, 50, .05);
}

.rail-card + .rail-card { margin-top: 16px; }

.rail-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 16px 12px;
    border-bottom: 1px solid rgba(83, 60, 50, .06);
}

.rail-head h3 {
    flex: 1;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .05em;
    color: var(--ink);
}

.rail-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #d9a79c, var(--link));
    box-shadow: 0 0 0 4px rgba(194, 96, 122, .1);
}

.rail-more {
    font-size: 11px;
    color: var(--muted);
    transition: color .18s ease;
}

.rail-more:hover { color: var(--link); }

.rail-list {
    margin: 0;
    padding: 6px 8px 10px;
    list-style: none;
}

.rail-item {
    display: flex;
    gap: 9px;
    padding: 9px 8px;
    border-radius: 12px;
    transition: background-color .18s ease;
}

.rail-item:hover { background: #faf6f3; }

.rail-ava {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 12px;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, #e7a9b8, #b07fb4);
}

.rail-ava img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rail-body { min-width: 0; flex: 1; }

.rail-top {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.rail-name {
    max-width: 108px;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rail-time {
    margin-left: auto;
    flex: 0 0 auto;
    font-size: 10px;
    color: var(--muted);
}

.rail-text {
    display: -webkit-box;
    margin: 2px 0 0;
    overflow: hidden;
    font-size: 11.5px;
    line-height: 1.6;
    color: #8b8078;
    word-break: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rail-rank {
    width: 15px;
    flex: 0 0 auto;
    padding-top: 1px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    color: #c9bdb6;
}

.rail-rank.is-top { color: var(--link); }

.rail-thumb {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #b9a9a0;
    border-radius: 9px;
    background: #f4eeea;
}

.rail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rail-thumb svg {
    width: 17px;
    height: 17px;
}

.rail-post-meta {
    display: flex;
    gap: 8px;
    margin-top: 3px;
    font-size: 10px;
    color: var(--muted);
}

.rail-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.rail-post-meta svg {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    opacity: .7;
}

.rail-empty {
    margin: 0;
    padding: 20px 16px;
    font-size: 11.5px;
    line-height: 1.7;
    text-align: center;
    color: var(--muted);
}

@media (min-width: 1280px) {
    .layout {
        grid-template-columns: 336px minmax(0, 1fr) 290px;
        max-width: 1440px;
    }

    .layout > .rail-right {
        position: sticky;
        top: 74px;
        display: block;
    }
}

@media (min-width: 1560px) {
    .layout {
        grid-template-columns: 232px 320px minmax(0, 1fr) 290px;
        max-width: 1700px;
    }

    .layout > .rail-left {
        position: sticky;
        top: 74px;
        display: block;
    }
}

/* ------------------------------------------------------------ 底部导航：彩色糖果图标 */

.dock {
    background: linear-gradient(180deg, #ffffff, #fffafc);
    border-color: rgba(255, 160, 190, .2);
    box-shadow:
        0 18px 40px -22px rgba(214, 120, 150, .42),
        0 2px 10px rgba(0, 0, 0, .04);
}

.dock-item {
    color: #8a7f79;
}

.dock-item svg {
    width: 15px;
    height: 15px;
    padding: 5px;
    box-sizing: content-box;
    border-radius: 50%;
    stroke: #fff;
    background: linear-gradient(135deg, var(--dock-c1), var(--dock-c2));
    box-shadow: 0 4px 10px -4px var(--dock-shadow);
    transition: transform .22s cubic-bezier(.2, .9, .3, 1.3), box-shadow .22s ease;
}

.dock-item:nth-child(1) { --dock-c1: #ffb3c6; --dock-c2: #ff6f91; --dock-shadow: rgba(255, 111, 145, .55); }
.dock-item:nth-child(2) { --dock-c1: #ffc978; --dock-c2: #ff9a4d; --dock-shadow: rgba(255, 154, 77, .5); }
.dock-item:nth-child(3) { --dock-c1: #9be0ff; --dock-c2: #5aa9f0; --dock-shadow: rgba(90, 169, 240, .5); }
.dock-item:nth-child(4) { --dock-c1: #d3b8ff; --dock-c2: #9b7bff; --dock-shadow: rgba(155, 123, 255, .5); }
.dock-item:nth-child(5) { --dock-c1: #8ff0cd; --dock-c2: #3fc79f; --dock-shadow: rgba(63, 199, 159, .5); }

.dock-item:hover {
    color: var(--ink);
    background: transparent;
}

.dock-item:hover svg {
    transform: translateY(-2px) scale(1.07);
}

.dock-item.is-active {
    color: #b4556f;
    background: linear-gradient(135deg, #fff1f6, #ffe6ef);
    box-shadow: inset 0 0 0 1px rgba(255, 138, 170, .24);
}

.dock-item.is-active svg {
    stroke: #fff;
    background: linear-gradient(135deg, #ff8fb0, #ff5f86);
    box-shadow: 0 6px 14px -5px rgba(255, 95, 134, .75);
}

/* ------------------------------------------------------------ 图片加载动画（loading-146） */

.loading-146 {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
    border: 4px solid #0000;
    border-radius: 50%;
    border-right-color: #25b09b;
    animation: loading-146 1s infinite linear;
}

.loading-146::before,
.loading-146::after {
    content: "";
    grid-area: 1 / 1;
    margin: 2px;
    border: inherit;
    border-radius: 50%;
    animation: loading-146 2s infinite;
}

.loading-146::after {
    margin: 8px;
    animation-duration: 3s;
}

@keyframes loading-146 {
    100% {
        transform: rotate(1turn);
    }
}

.ld-img-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 34px;
    margin: -17px 0 0 -17px;
    border-width: 3px;
    border-right-color: #e08aa2;
    border-left-color: rgba(224, 138, 162, .16);
    pointer-events: none;
}

.ld-img-loader::before {
    margin: 2px;
    border-right-color: #b98ac9;
    border-left-color: rgba(185, 138, 201, .14);
}

.ld-img-loader::after {
    margin: 5px;
    border-right-color: #e8a87c;
    border-left-color: rgba(232, 168, 124, .14);
    animation-duration: 3s;
}

.ph.is-loading img,
.album-ph.is-loading img {
    opacity: 0;
}

.ph.is-loaded,
.album-ph.is-loaded {
    background-image: none;
    animation: none;
}
