body {
    min-height: 100vh;
    color: #3e3a36;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 72%, rgba(255, 220, 194, 0.26) 0 180px, transparent 194px),
        radial-gradient(circle at 90% 36%, rgba(200, 224, 255, 0.22) 0 190px, transparent 204px),
        linear-gradient(180deg, #fffaf2 0%, #fff7f8 48%, #f7fbff 100%);
}

.video-hero {
    height: 80vh;
}

.video-hero .video-bg {
    object-fit: cover;
    object-position: center 30%;
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 12px 0;
    pointer-events: auto;
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
}

.header .container {
    display: flex;
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
}

.header .nav {
    position: relative;
    isolation: isolate;
    display: flex;
    gap: 42px;
    align-items: center;
    padding: 10px 26px 12px;
    border: 1px solid rgba(255, 244, 224, 0.82);
    border-radius: 18px 999px 999px 18px;
    background:
        radial-gradient(circle at 8% 28%, rgba(255, 224, 198, 0.56) 0 5px, transparent 6px),
        radial-gradient(circle at 94% 64%, rgba(142, 188, 213, 0.26) 0 7px, transparent 8px),
        linear-gradient(90deg, rgba(164, 119, 82, 0.18) 0 1px, transparent 1px),
        linear-gradient(180deg, rgba(136, 91, 59, 0.08) 0 1px, transparent 1px),
        linear-gradient(135deg, rgba(255, 252, 244, 0.78), rgba(248, 231, 207, 0.58) 44%, rgba(226, 242, 253, 0.48));
    background-size: auto, auto, 22px 100%, 100% 16px, auto;
    box-shadow:
        0 16px 34px rgba(68, 48, 36, 0.20),
        0 4px 12px rgba(255, 248, 236, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.86),
        inset 0 -1px 0 rgba(130, 91, 62, 0.12);
    backdrop-filter: blur(9px) saturate(1.08);
    overflow: visible;
}

.header .nav::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 7px;
    height: 5px;
    border-top: 1px solid rgba(144, 96, 62, 0.22);
    border-bottom: 1px dashed rgba(144, 96, 62, 0.22);
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    pointer-events: none;
    z-index: 0;
}

.header .nav::after {
    content: "";
    position: absolute;
    left: -17px;
    top: 50%;
    width: 44px;
    height: 32px;
    border: 1px solid rgba(194, 150, 105, 0.34);
    border-right: 0;
    border-radius: 16px 4px 4px 16px;
    background:
        radial-gradient(circle at 56% 50%, rgba(255, 255, 255, 0.9) 0 4px, rgba(202, 153, 103, 0.36) 5px 6px, transparent 7px),
        linear-gradient(135deg, rgba(255, 246, 232, 0.78), rgba(236, 208, 178, 0.44));
    box-shadow:
        7px 0 0 rgba(255, 252, 246, 0.24),
        0 8px 18px rgba(70, 45, 30, 0.12);
    transform: translateY(-50%) rotate(-2deg);
    pointer-events: none;
    z-index: 0;
}

.header .nav a {
    position: relative;
    z-index: 1;
    padding: 2px 4px 5px;
    color: #2e4052;
    font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC", Arial, sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92),
        0 7px 14px rgba(64, 43, 30, 0.22);
}

.header .nav a::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -8px;
    width: 18px;
    height: 15px;
    border-radius: 10px 10px 12px 4px;
    background:
        radial-gradient(circle at 36% 36%, rgba(255, 255, 255, 0.82) 0 2px, transparent 3px),
        linear-gradient(135deg, rgba(255, 198, 188, 0.82), rgba(255, 236, 196, 0.70));
    box-shadow:
        10px 5px 0 -3px rgba(160, 206, 207, 0.58),
        -7px 8px 0 -4px rgba(210, 163, 124, 0.46);
    opacity: 0;
    transform: translateX(-50%) translateY(4px) rotate(-18deg) scale(0.82);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.header .nav a::after {
    left: 4px;
    right: 4px;
    bottom: -4px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(176, 114, 76, 0.84), rgba(119, 166, 187, 0.72), transparent);
    box-shadow: 0 3px 8px rgba(176, 114, 76, 0.20);
}

.header .nav a:hover {
    color: #6b4a32;
    transform: translateY(-2px);
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.96),
        0 9px 16px rgba(118, 75, 45, 0.24);
}

.header .nav a:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0) rotate(-12deg) scale(1);
}

.header .blog-title {
    position: relative;
    isolation: isolate;
    display: inline-block;
    margin: 0;
    padding: 9px 24px 11px 28px;
    border: 1px solid rgba(255, 244, 224, 0.86);
    border-radius: 8px 20px 20px 8px;
    color: #fdf4e8;
    -webkit-text-fill-color: currentColor;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.64) 0 4px, transparent 5px),
        radial-gradient(circle at 88% 78%, rgba(255, 211, 192, 0.42) 0 12px, transparent 13px),
        linear-gradient(90deg, rgba(83, 56, 42, 0.82), rgba(70, 91, 112, 0.74) 58%, rgba(158, 118, 82, 0.72));
    box-shadow:
        0 16px 34px rgba(43, 31, 25, 0.26),
        0 0 0 5px rgba(255, 252, 244, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.48);
    font-family: "LXGW WenKai", "STKaiti", "KaiTi", "FangSong", "Microsoft YaHei", serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-shadow:
        0 1px 0 rgba(50, 32, 24, 0.52),
        0 0 12px rgba(255, 244, 221, 0.48);
    backdrop-filter: blur(8px) saturate(1.08);
    overflow: visible;
}

.header .blog-title::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 8px;
    bottom: 8px;
    width: 8px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 12%, rgba(255, 246, 222, 0.96) 0 2px, transparent 3px),
        radial-gradient(circle at 50% 50%, rgba(255, 246, 222, 0.96) 0 2px, transparent 3px),
        radial-gradient(circle at 50% 88%, rgba(255, 246, 222, 0.96) 0 2px, transparent 3px),
        linear-gradient(180deg, rgba(219, 180, 126, 0.54), rgba(255, 255, 255, 0.22));
    box-shadow: inset -1px 0 0 rgba(61, 42, 33, 0.22);
    pointer-events: none;
}

.header .blog-title::after {
    content: "";
    position: absolute;
    right: -18px;
    top: -12px;
    width: 34px;
    height: 18px;
    border-radius: 4px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 219, 205, 0.42)),
        repeating-linear-gradient(90deg, transparent 0 6px, rgba(129, 87, 60, 0.10) 6px 7px);
    box-shadow:
        0 8px 16px rgba(61, 42, 33, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    opacity: 0.86;
    transform: rotate(9deg);
    pointer-events: none;
}

.album-divider {
    position: relative;
    z-index: 2;
    height: 110px;
    margin-top: -70px;
    overflow: hidden;
    pointer-events: none;
}

.album-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}

.paper-edge {
    fill: rgba(255, 250, 242, 0.96);
    filter: drop-shadow(0 -8px 18px rgba(116, 92, 76, 0.10));
}

.album-tape {
    position: absolute;
    top: 34px;
    width: 112px;
    height: 28px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 225, 198, 0.36));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
    transform: rotate(-8deg);
}

.album-tape--left {
    left: 12%;
}

.message-album-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    max-width: 1180px;
    margin: -10px auto 64px;
    padding: 0 24px;
}

.message-album-layout::before {
    content: "";
    position: absolute;
    inset: -22px 8px -46px;
    z-index: -1;
    pointer-events: none;
    border-radius: 34px;
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 235, 211, 0.58) 0 110px, transparent 126px),
        radial-gradient(circle at 88% 28%, rgba(213, 231, 255, 0.42) 0 150px, transparent 166px),
        linear-gradient(90deg, rgba(169, 130, 98, 0.055) 1px, transparent 1px),
        linear-gradient(180deg, rgba(169, 130, 98, 0.045) 1px, transparent 1px),
        rgba(255, 252, 246, 0.66);
    background-size: auto, auto, 38px 38px, 38px 38px, auto;
}

.message-board-main {
    min-width: 0;
}

.album-info-card,
.message-form,
.comments,
.comment {
    position: relative;
    border: 1px solid rgba(231, 202, 177, 0.62);
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.88) 0 54px, transparent 66px),
        linear-gradient(145deg, rgba(255, 253, 247, 0.92), rgba(255, 245, 247, 0.78) 54%, rgba(246, 251, 255, 0.74));
    box-shadow:
        0 18px 46px rgba(123, 94, 72, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.album-info-card {
    position: sticky;
    top: 96px;
    align-self: start;
    overflow: hidden;
    padding: 24px;
    border-radius: 22px;
}

.album-info-card::before,
.message-form::before,
.comment::before {
    content: "";
    position: absolute;
    pointer-events: none;
}

.album-info-card::before {
    right: 18px;
    top: -2px;
    width: 58px;
    height: 92px;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(180deg, rgba(255, 183, 204, 0.42), rgba(255, 236, 221, 0.28));
}

.album-info-pin {
    position: absolute;
    left: 22px;
    top: 18px;
    width: 28px;
    height: 12px;
    border-radius: 999px;
    background: rgba(198, 220, 245, 0.56);
    transform: rotate(-8deg);
    pointer-events: none;
}

.album-info-card h3,
.message-form h3,
.comments h3 {
    font-family: "LXGW WenKai", "STKaiti", "KaiTi", "Songti SC", "Microsoft YaHei", serif;
    color: #57463d;
    letter-spacing: 0.04em;
}

.album-info-card h3 {
    margin: 18px 0 22px;
    font-size: 22px;
}

.album-info-row {
    padding: 12px 0;
    border-bottom: 1px dashed rgba(203, 171, 144, 0.44);
}

.album-info-row span {
    display: block;
    color: #9b7c68;
    font-size: 13px;
}

.album-info-row strong {
    display: block;
    margin-top: 4px;
    color: #493b34;
    font-size: 18px;
}

.album-info-card p {
    margin-top: 18px;
    color: #8b6d5d;
    font-family: "LXGW WenKai", "STKaiti", "KaiTi", "Songti SC", "Microsoft YaHei", serif;
    font-size: 16px;
    line-height: 1.8;
}

.message-form {
    overflow: hidden;
    margin-bottom: 34px;
    padding: 34px;
    border-radius: 24px;
}

.message-form::before {
    right: 28px;
    top: 30px;
    width: 118px;
    height: 30px;
    border: 0;
    border-radius: 5px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.34) 0 10px, transparent 10px 18px),
        linear-gradient(135deg, rgba(255, 238, 211, 0.58), rgba(255, 214, 226, 0.38));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.58),
        0 8px 18px rgba(151, 108, 82, 0.08);
    transform: rotate(6deg);
}

.message-form::after {
    content: "";
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 28px;
    height: 1px;
    pointer-events: none;
    background: repeating-linear-gradient(90deg, rgba(204, 176, 150, 0.18) 0 70px, transparent 70px 82px);
}

.message-form h3 {
    margin-bottom: 22px;
    font-size: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #6f5b50;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(214, 190, 166, 0.78);
    border-radius: 12px;
    outline: none;
    color: #3f3a36;
    font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: rgba(255, 253, 248, 0.82);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.visitor-auth-input:focus-within {
    border-color: rgba(226, 145, 174, 0.72);
    box-shadow: 0 0 0 3px rgba(255, 190, 213, 0.18);
    background: rgba(255, 255, 255, 0.92);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.btn {
    padding: 11px 26px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    background: linear-gradient(135deg, #e8a0bd, #9fc8f2);
    box-shadow: 0 12px 24px rgba(180, 125, 164, 0.18);
}

.btn:hover {
    opacity: 0.94;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 12px;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.comments {
    overflow: hidden;
    padding: 30px;
    border-radius: 24px;
}

.comments h3 {
    margin-bottom: 22px;
    font-size: 24px;
}

.comment {
    margin-bottom: 18px;
    padding: 20px;
    border-radius: 20px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.comment:hover {
    transform: translateY(-2px);
    box-shadow:
        0 20px 48px rgba(123, 94, 72, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.comment::before {
    left: 18px;
    top: -8px;
    width: 70px;
    height: 22px;
    border-radius: 4px;
    background: rgba(255, 231, 207, 0.52);
    transform: rotate(-4deg);
}

.comment:last-child {
    margin-bottom: 0;
}

.comment-header {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
}

.comment-author {
    color: #7c668d;
    font-weight: 700;
}

.comment-date {
    padding: 3px 9px;
    border: 1px solid rgba(210, 184, 161, 0.54);
    border-radius: 999px;
    color: #9a7a68;
    font-size: 12px;
    background: rgba(255, 248, 238, 0.68);
}

.comment-content {
    color: #4c4640;
    line-height: 1.85;
    word-break: break-word;
}

.comment-actions {
    margin-top: 12px;
}

.comment-actions button {
    padding: 0;
    border: none;
    color: #9f79bf;
    cursor: pointer;
    font-size: 12px;
    background: none;
}

.comment-actions button:hover {
    text-decoration: underline;
}

.comment-reply {
    margin: 14px 0 0 34px;
    padding: 16px;
    border-color: rgba(182, 211, 237, 0.62);
    border-radius: 16px;
    background:
        radial-gradient(circle at 92% 16%, rgba(205, 228, 255, 0.32) 0 42px, transparent 48px),
        rgba(244, 250, 255, 0.78);
}

.comment-reply::before {
    width: 48px;
    height: 18px;
    background: rgba(207, 226, 250, 0.52);
}

.comment-reply .comment-header {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    margin-bottom: 8px;
}

.comment-reply .comment-content {
    font-size: 14px;
}

.reply-form {
    display: none;
    margin-top: 12px;
    padding: 16px;
    border: 1px solid rgba(214, 190, 166, 0.58);
    border-radius: 16px;
    background: rgba(255, 251, 244, 0.72);
}

.reply-form.show {
    display: block;
}

.reply-form textarea {
    min-height: 82px;
}

.reply-form .btn-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.empty {
    padding: 44px;
    border: 1px dashed rgba(203, 171, 144, 0.50);
    border-radius: 18px;
    color: #9a7a68;
    text-align: center;
    background: rgba(255, 252, 246, 0.56);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(64, 52, 45, 0.42);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 18px;
    background: #fffdf8;
}

.modal-content .form-row {
    display: flex;
    gap: 15px;
}

.modal-content .form-row .form-group {
    flex: 1;
    min-width: 0;
}

.avatar {
    width: 42px;
    height: 42px;
    padding: 3px;
    border: 1px solid rgba(224, 199, 174, 0.76);
    border-radius: 50%;
    object-fit: cover;
    background: #fffdf8;
    box-shadow: 0 6px 14px rgba(126, 92, 71, 0.12);
}

.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-lg {
    width: 80px;
    height: 80px;
}

.visitor-auth-panel {
    display: none;
    margin-bottom: 18px;
    padding: 15px;
    border: 1px solid rgba(226, 199, 176, 0.66);
    border-radius: 18px;
    background:
        radial-gradient(circle at 10% 16%, rgba(255, 255, 255, 0.86) 0 34px, transparent 42px),
        linear-gradient(135deg, rgba(255, 251, 244, 0.88), rgba(246, 251, 255, 0.72));
    box-shadow: 0 12px 28px rgba(126, 92, 71, 0.08);
}

.visitor-auth-panel.show {
    display: block;
}

.visitor-auth-panel.is-attention {
    box-shadow:
        0 0 0 3px rgba(255, 190, 213, 0.20),
        0 16px 34px rgba(126, 92, 71, 0.12);
}

.visitor-auth-main {
    display: flex;
    gap: 14px;
    align-items: center;
}

.visitor-auth-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    transform: rotate(-2deg);
}

.visitor-auth-fields {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(260px, 1.55fr) 118px;
    gap: 8px;
    flex: 1;
}

.visitor-auth-input {
    display: flex;
    min-width: 0;
    overflow: hidden;
    align-items: center;
    border: 1px solid rgba(214, 190, 166, 0.78);
    border-radius: 10px;
    background: rgba(255, 253, 248, 0.80);
}

.visitor-auth-input span {
    align-self: stretch;
    display: flex;
    padding: 0 13px;
    align-items: center;
    color: #735f52;
    font-size: 14px;
    white-space: nowrap;
    background: rgba(255, 245, 232, 0.82);
    border-right: 1px solid rgba(214, 190, 166, 0.66);
}

.visitor-auth-input input {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 12px;
    border: 0;
    outline: none;
    color: #3f3a36;
    font-size: 14px;
    background: transparent;
}

.visitor-auth-input input::placeholder {
    color: #b0a297;
}

.visitor-auth-send,
.visitor-auth-confirm {
    height: 38px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #d99bb8, #8fbfe8);
    box-shadow: 0 8px 18px rgba(166, 120, 160, 0.18);
}

.visitor-auth-send:disabled,
.visitor-auth-confirm:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.visitor-auth-code-row {
    display: none;
    grid-template-columns: minmax(220px, 1fr) 120px;
    gap: 8px;
    margin: 12px 0 0 62px;
}

.visitor-auth-code-row.show {
    display: grid;
}

.visitor-auth-hint {
    margin: 9px 0 0 62px;
    color: #8f8074;
    font-size: 12px;
}

.error-msg {
    display: none;
    margin-top: 5px;
    color: #c55370;
    font-size: 14px;
}

.error-msg.show {
    display: block;
}

.user-info,
.user-info-bar {
    display: none;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px;
    align-items: center;
    border: 1px solid rgba(226, 199, 176, 0.62);
    border-radius: 14px;
    background: rgba(255, 251, 244, 0.74);
}

.user-info.show,
.user-info-bar.show {
    display: flex;
}

.user-info-bar .user-nickname {
    color: #7c668d;
    font-weight: 700;
}

.user-info-bar .logout-btn {
    margin-left: auto;
    color: #8f8074;
    cursor: pointer;
    font-size: 14px;
}

.user-info-bar .logout-btn:hover {
    color: #c55370;
}

#commentInputArea {
    display: none;
}

#commentInputArea.show {
    display: block;
}

.album-floaters {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.album-floater {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 54px;
    height: 42px;
    opacity: 0.22;
    animation: albumFloat var(--d) ease-in-out infinite;
    animation-delay: var(--delay);
}

.album-floater--photo {
    border: 6px solid rgba(255, 255, 255, 0.72);
    border-bottom-width: 14px;
    background: rgba(205, 228, 255, 0.38);
    transform: rotate(-8deg);
}

.album-floater--note {
    width: 44px;
    height: 52px;
    border-radius: 8px;
    background: rgba(255, 226, 232, 0.54);
    transform: rotate(7deg);
}

@keyframes albumFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(-6deg);
    }

    50% {
        transform: translate3d(18px, -22px, 0) rotate(8deg);
    }
}

.album-book-widget {
    position: fixed;
    left: 28px;
    bottom: 30px;
    width: 178px;
    height: 126px;
    z-index: 2;
    pointer-events: none;
    perspective: 760px;
}

.album-book {
    position: relative;
    width: 158px;
    height: 104px;
    margin: 12px 0 0 10px;
    transform: rotate(-5deg);
    transform-style: preserve-3d;
    filter: drop-shadow(0 18px 28px rgba(135, 95, 72, 0.14));
}

.album-book-cover,
.album-book-page {
    position: absolute;
    left: 34px;
    top: 0;
    width: 112px;
    height: 96px;
    border-radius: 10px 14px 14px 10px;
    transform-origin: left center;
    pointer-events: none;
}

.album-book-cover {
    left: 28px;
    width: 118px;
    height: 102px;
    background:
        radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.72), transparent 22%),
        linear-gradient(135deg, rgba(255, 224, 232, 0.88), rgba(255, 247, 228, 0.94));
    border: 1px solid rgba(226, 170, 182, 0.56);
    box-shadow:
        inset 0 0 0 8px rgba(255, 255, 255, 0.28),
        0 10px 22px rgba(176, 122, 104, 0.12);
}

.album-book-page {
    background:
        linear-gradient(90deg, rgba(244, 211, 191, 0.20) 0 1px, transparent 1px 12px),
        linear-gradient(180deg, rgba(255, 254, 247, 0.96), rgba(255, 241, 232, 0.92));
    border: 1px solid rgba(221, 188, 158, 0.42);
    box-shadow: 0 8px 18px rgba(157, 119, 93, 0.10);
    animation: albumPageFlip 8.8s ease-in-out infinite;
}

.album-book-page span {
    position: absolute;
    display: block;
    border-radius: 6px;
    background: rgba(202, 223, 241, 0.48);
    border: 3px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 4px 8px rgba(122, 97, 78, 0.08);
}

.album-book-page span:first-child {
    left: 18px;
    top: 18px;
    width: 42px;
    height: 30px;
    transform: rotate(-5deg);
}

.album-book-page span:last-child {
    right: 16px;
    bottom: 18px;
    width: 34px;
    height: 26px;
    background: rgba(255, 209, 221, 0.42);
    transform: rotate(7deg);
}

.album-book-page--back {
    transform: rotateY(-10deg);
    animation-delay: -5.4s;
}

.album-book-page--middle {
    transform: rotateY(-4deg);
    animation-delay: -2.8s;
}

.album-book-page--front {
    animation-delay: -0.6s;
}

.album-book-spine {
    position: absolute;
    left: 24px;
    top: 0;
    width: 22px;
    height: 104px;
    border-radius: 12px 4px 4px 12px;
    background: linear-gradient(180deg, rgba(185, 145, 116, 0.80), rgba(238, 190, 176, 0.88));
    box-shadow:
        inset -4px 0 8px rgba(117, 76, 56, 0.16),
        0 8px 16px rgba(128, 87, 68, 0.12);
}

@keyframes albumPageFlip {
    0%, 18% {
        transform: rotateY(-2deg);
    }

    42%, 56% {
        transform: rotateY(-66deg) translateX(-4px);
    }

    78%, 100% {
        transform: rotateY(-2deg);
    }
}

@media (max-width: 1024px) {
    .message-album-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 20px;
    }

    .visitor-auth-fields {
        grid-template-columns: 1fr;
    }

    .visitor-auth-send {
        width: 128px;
    }
}

@media (max-width: 768px) {
    .video-hero {
        height: 56vh;
    }

    .album-divider {
        height: 80px;
        margin-top: -52px;
    }

    .message-album-layout {
        display: block;
        max-width: 100%;
        margin-top: -4px;
        padding: 0 16px 46px;
    }

    .album-info-card {
        position: relative;
        top: auto;
        margin-bottom: 20px;
    }

    .message-form,
    .comments {
        padding: 22px 18px;
    }

    .visitor-auth-main,
    .comment-header {
        display: flex;
        flex-wrap: wrap;
    }

    .visitor-auth-code-row {
        grid-template-columns: 1fr;
        margin-left: 0;
    }

    .visitor-auth-hint {
        margin-left: 0;
    }

    .comment-reply {
        margin-left: 12px;
    }

    .album-floaters {
        display: none;
    }

    .album-book-widget {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .album-floater,
    .album-book-page,
    .comment,
    .btn {
        animation: none;
        transition: none;
    }
}
