.cc42-media.cc52-gallery{position:relative;display:block;width:100%;padding:0;border:1px solid var(--line,#293b42);border-radius:18px;overflow:hidden;background:#0b1419;touch-action:pan-y}
.cc52-gallery .cc52-gallery-open{display:block;width:100%;height:100%;min-height:230px;padding:0;border:0;border-radius:0;background:none;cursor:zoom-in}
.cc52-gallery .post-image{display:block;width:100%;height:clamp(260px,55vw,580px);max-height:none;margin:0;object-fit:contain;aspect-ratio:4/5}
.cc52-gallery .cc52-gallery-prev,.cc52-gallery .cc52-gallery-next{position:absolute;z-index:2;top:50%;transform:translateY(-50%);width:44px;height:44px;min-width:44px;padding:0;border:1px solid #ffffff50;border-radius:50%;background:#111d26da;color:#fff;font-size:32px;line-height:1;box-shadow:0 2px 10px #0005;cursor:pointer}
.cc52-gallery .cc52-gallery-prev{left:10px}.cc52-gallery .cc52-gallery-next{right:10px}.cc52-gallery button:disabled{opacity:.3;cursor:default}.cc52-gallery button:focus-visible{outline:3px solid #05c8b0;outline-offset:-3px}
.cc52-gallery .cc42-media-count{position:absolute;right:12px;top:12px;padding:6px 10px;border-radius:30px;background:#111d26df;color:#fff;font-size:13px;pointer-events:none}
.cc52-gallery-dots{display:flex;position:absolute;bottom:10px;left:50%;transform:translateX(-50%);gap:0;background:#111d26c9;padding:0 5px;border-radius:24px}
.cc52-gallery .cc52-gallery-dot{display:grid;place-items:center;width:30px;height:30px;min-height:30px;padding:0;border:0;background:none}.cc52-gallery-dot:after{content:'';width:6px;height:6px;border-radius:50%;background:#ffffff65}.cc52-gallery-dot[aria-current=true]:after{background:#05d0b6;transform:scale(1.4)}
.cc52-gallery-error{position:absolute;bottom:50px;left:10%;right:10%;padding:10px;border-radius:12px;background:#17272eed;color:#fff;pointer-events:none;font-size:13px}
.cc52-reader-entry{border:1px solid var(--line,#2a3e46);border-radius:12px;padding:9px 13px;background:var(--surface,#17262d);color:var(--text,#e9f0f3);font-weight:600;min-height:40px}
dialog.cc52-reader{box-sizing:border-box;width:min(820px,calc(100vw - 28px));height:min(860px,calc(100dvh - 28px));max-height:calc(100dvh - 28px);padding:0;border:1px solid var(--line,#2a3e46);border-radius:24px;background:var(--surface,#111e24);color:var(--text,#e9f0f3);overflow:hidden}
dialog.cc52-reader[open]{display:flex;flex-direction:column}.cc52-reader::backdrop{background:#030a10bb;backdrop-filter:blur(7px)}
.cc52-reader>header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;gap:12px;border-bottom:1px solid var(--line,#293b42)}.cc52-reader h2{font-size:19px;margin:0}.cc52-reader-close{width:44px;height:44px;flex-shrink:0;font-size:26px}
.cc52-reader-tools{display:flex;align-items:center;gap:8px;padding:10px 18px;flex-wrap:wrap}.cc52-reader-tools button,.cc52-reader-close{border:1px solid var(--line,#293b42);border-radius:12px;background:var(--surface-alt,#1c2d35);color:inherit;min-height:44px;padding:8px 12px}.cc52-reader-tools output{min-width:44px;text-align:center;font-size:13px}.cc52-reader-tools button:last-child{margin-left:auto;font-size:13px}
.cc52-reader progress{width:100%;height:3px;flex-shrink:0;border:0;accent-color:#07ccb4}.cc52-reader-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:22px clamp(18px,5vw,66px) 44px;scrollbar-gutter:stable}
.cc52-reader-author{font-size:14px;color:var(--muted,#91a8b1);margin:0 0 22px}.cc52-reader-prose{font-family:inherit;font-size:var(--reader-size,18px);line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;tab-size:4}.cc52-reader-status{font-size:13px;margin:0;padding:6px 18px;min-height:16px}.cc52-text-counter{display:block;text-align:right;font-size:12px;color:var(--muted,#91a8b1);padding:7px 2px}.cc52-text-counter.over-limit{color:#ff8787}
@media(max-width:480px){dialog.cc52-reader{width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);border-radius:18px}.cc52-reader>header{padding:10px 12px}.cc52-reader-tools{padding:8px 12px;gap:5px}.cc52-gallery .post-image{height:390px;max-height:65dvh}}
