.board-container {
    width: min(1080px, calc(100% - 32px));
    margin: 28px auto 72px;
    padding: 24px;
    border-radius: 20px;
    background: #111821;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
    color: #eef2f7;
}

.board-container h1,
.board-container h2 {
    margin: 0 0 20px;
    color: #f5f8fd;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.board-container a {
    color: inherit;
    text-decoration: none;
}

.board-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #6366f1;
    border-radius: 14px;
    background: #6366f1;
    color: #ffffff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.board-button:hover {
    transform: translateY(-1px);
    background: #7c7ff5;
    border-color: #7c7ff5;
}

.delete-button {
    background: rgba(217, 72, 72, 0.16);
    border-color: rgba(217, 72, 72, 0.28);
    color: #ffd8d8;
}

.delete-button:hover {
    background: rgba(217, 72, 72, 0.22);
    border-color: rgba(217, 72, 72, 0.34);
}

.button-group {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.post-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.post-list th,
.post-list td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.post-list th {
    background: #0d141d;
    color: #8da0b8;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.post-list tbody tr {
    background: #111821;
    transition: background-color 0.18s ease;
}

.post-list tbody tr:hover {
    background: #151e29;
}

.post-list tbody tr.post-row-link {
    cursor: pointer;
}

.post-list td a:hover {
    color: #a9c2ff;
}

.post-list .pagination {
    text-align: center;
    margin-top: 26px;
}

.post-list .pagination a,
.post-list .pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    margin: 0 4px;
    border-radius: 12px;
    background: #0d141d;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #eef2f7;
}

.post-list .pagination .current,
.post-list .pagination a:hover {
    background: #6366f1;
    border-color: #6366f1;
}

.post-detail .post-meta {
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #97a6ba;
}

.post-detail .post-meta-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.post-detail .post-meta-row p {
    margin: 0;
}

.post-detail .post-meta-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.post-detail .post-content {
    padding: 22px;
    border-radius: 18px;
    background: #0d141d;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 28px;
    min-height: 160px;
    line-height: 1.8;
}

.comment-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-form,
.reply-form,
.post-form form {
    display: grid;
    gap: 12px;
}

.post-form label,
.comment-section label {
    font-weight: 700;
}

.post-form input[type="text"],
.post-form textarea,
.comment-form textarea,
.reply-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: #0a1017;
    color: #eef2f7;
    padding: 14px 16px;
}

.comment-login-note,
.comment-empty {
    color: #98a7bc;
}

.comment-list {
    display: grid;
    gap: 12px;
}

.comment-item {
    padding: 14px;
    border-radius: 16px;
    background: #0d141d;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.reply-item {
    margin-top: 10px;
    margin-left: 24px;
    padding-left: 14px;
    border-left: 2px solid rgba(82, 129, 214, 0.32);
}

.comment-head {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.comment-head-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.comment-anon {
    color: #e4edfb;
    font-weight: 700;
}

.comment-anon.is-owner {
    color: #8ec4ff;
}

.reply-prefix {
    font-size: 12px;
    color: #b8d2ff;
    border: 1px solid rgba(82, 129, 214, 0.26);
    border-radius: 999px;
    padding: 2px 8px;
}

.comment-date {
    color: #8b9bb0;
    font-size: 0.85rem;
    margin-left: auto;
}

.comment-body {
    margin: 10px 0 0;
    line-height: 1.7;
    white-space: pre-wrap;
}

.comment-context-menu {
    position: fixed;
    z-index: 1500;
    display: none;
    gap: 6px;
    min-width: 150px;
    padding: 8px;
    border-radius: 14px;
    background: #111821;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.comment-context-menu.is-open {
    display: grid;
}

/* Like button states */
.board-button.like-btn::before {
    content: "♡";
    margin-right: 5px;
}

.board-button.like-btn.is-liked::before {
    content: "♥";
}

.comment-context-menu button {
    border: 0;
    border-radius: 10px;
    background: #0d141d;
    color: #eef2f7;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
}

.comment-context-menu button:hover {
    background: #162131;
}

@media (max-width: 720px) {
    .board-container {
        width: min(100%, calc(100% - 16px));
        padding: 18px;
        border-radius: 18px;
    }

    .post-list table,
    .post-list thead,
    .post-list tbody,
    .post-list tr,
    .post-list td,
    .post-list th {
        display: block;
    }

    .post-list thead {
        display: none;
    }

    .post-list tr {
        padding: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .post-list td {
        padding: 6px 0;
        border-bottom: 0;
    }

    .post-detail .post-meta-row {
        grid-template-columns: 1fr;
    }

    .button-group,
    .post-detail .post-meta-actions {
        justify-content: flex-start;
    }
}
