.thread-list {
    display: grid;
    gap: 14px;
}

.thread-card {
    overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(1200px) rotateX(0deg) rotateY(0deg) translateZ(0) scale(1);
    transition: transform 0.22s ease-out, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    will-change: transform;
}

.thread-card.is-tilting {
    transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease !important;
}

.thread-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;
    width: 70%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.02) 32%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.02) 68%, transparent 100%);
    opacity: 0;
    transform: skewX(-18deg);
    pointer-events: none;
}

.thread-card.shine-once::after {
    opacity: 1;
    animation: thread-shine 0.95s ease forwards;
}

@keyframes thread-shine {
    0% {
        left: -130%;
        opacity: 0;
    }
    15% {
        opacity: 0.95;
    }
    100% {
        left: 150%;
        opacity: 0;
    }
}

.thread-card__inner {
    position: relative;
    z-index: 1;
    transform: translateZ(18px);
    pointer-events: none;
}

.thread-card__top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.thread-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
}

.thread-title {
    margin-bottom: 12px;
    color: #f7fbff;
    font-size: clamp(1.08rem, 1.6vw, 1.26rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.thread-excerpt {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.72;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thread-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

.thread-statline {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.brand-chip,
.role-chip,
.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.04);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.role-chip {
    color: var(--white-soft);
}

.meta-chip.is-pinned {
    color: #d5dbe6;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.role-zrx {
    color: var(--color-admin);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
}

.role-mdr {
    color: var(--color-mod);
    text-shadow: 0 0 12px rgba(122, 226, 255, 0.16);
}

.role-usr {
    color: #ffffff;
}

.pagination-wrap {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pagination-status {
    min-width: 102px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
    color: var(--text-main);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
}

.content-shell {
    max-width: 920px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.back-link:hover {
    color: var(--text-main);
}

.op-card,
.reply-card {
    border-radius: 22px;
}

.reply-card {
    transition: transform 0.4s ease, opacity 0.4s ease, background 0.3s ease, border-color 0.3s ease;
}

.section-label {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
}

.section-rule {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
}

.post-header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.thread-meta-blob {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.04);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.post-title {
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #f9fbff;
}

.author-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.author-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.84rem;
    letter-spacing: 0.05em;
}

.post-content {
    color: var(--text-main);
    font-size: 0.98rem;
    line-height: 1.82;
    white-space: pre-wrap;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.post-image-wrap {
    margin-top: 18px;
}

.post-image {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    object-fit: cover;
    max-height: 440px;
    width: auto;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.post-image:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-soft);
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #fff;
}

.reaction-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 16px;
}

.reaction-btn {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.reaction-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.reaction-btn:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.07);
}

.btn-like:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(144, 238, 144, 0.1);
    color: rgba(144, 238, 144, 0.6);
}

.btn-like.active {
    background: rgba(144, 238, 144, 0.06);
    border-color: rgba(144, 238, 144, 0.25);
    color: #a8e6cf;
}

.btn-dislike:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 182, 193, 0.1);
    color: rgba(255, 182, 193, 0.6);
}

.btn-dislike.active {
    background: rgba(255, 182, 193, 0.06);
    border-color: rgba(255, 182, 193, 0.25);
    color: #ffaaa5;
}

.rating-label {
    margin-left: auto;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
}

.reply-stack {
    display: grid;
    gap: 16px;
}

.reply-card {
    padding: 20px;
}
