body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    height: 100vh;
    overflow-x: hidden;
    /* スクロールを防ぐ */
}

header {
    background-color: #333;
    color: white;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    height: 35px;
    /* ヘッダーの高さを指定 */
}

.login-button {
    margin: 0 35px 0 auto;
}

.login-button button {
    background-color: #333;
    color: #fff;
    box-shadow: none;
    border: none;
    padding: 10px 15px;
    border-radius: 30px;
    cursor: pointer;
}

.login-button button:hover {
    background-color: #555;
}

.menu-toggle {
    font-size: 24px;
    cursor: pointer;
    margin-right: 20px;
    user-select: none;
    z-index: 1002;
}

.logo img {
    width: 150px;
    margin-top: 6px;
    margin-left: -20px;
}

.sidebar {
    width: 250px;
    background-color: #333;
    color: white;
    padding: 20px;
    position: fixed;
    top: 35px;
    /* ヘッダーの高さ分だけ下に配置 */
    left: -300px;
    /* 初期状態では画面外に配置 */
    height: calc(100% - 35px);
    /* ヘッダーの高さを除いた高さを指定 */
    transition: left 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
    left: 0;
    /* アクティブな時に画面内に表示 */
}

.sidebar nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar nav ul li {
    margin: 5px 0;
}

.sidebar nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 17px;
    display: block;
    padding: 10px 15px;
    border-radius: 4px;
}

.sidebar nav ul li a:hover {
    background-color: #555;
    text-decoration: none;
}

.sidebar i {
    padding: 10px;
}

.timeline-switch {
    margin: 0 5rem 0 auto;
    gap: 5px;
    color: #fff;
}

.timeline-switch button {
    background-color: #333;
    border: none;
    padding: 10px;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
}

.timeline-switch button:hover {
    background-color: #696969;
}

#timeline-dropdown {
    display: none;
    background-color: #333;
    color: #ffffff;
    border: none;
    padding: 10px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 3px;
}

main {
    margin-left: 0;
    padding: 0px 20px 20px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    width: 100%;
    display: block;
    flex: 0 0 auto; /* 親がflexでも横並びの影響を弱める */
}

.content a {
    color: #0073e6;
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

.post-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.post-card:hover {
    background-color: #f5f5f5;
}

textarea {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.user-menu {
    position: relative;
    cursor: pointer;
}

#dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    display: none;
    z-index: 1002;
    border-radius: 5px;
}

#dropdown a {
    display: block;
    padding: 10px 15px;
    width: 100px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

#dropdown a:hover {
    background-color: #f0f0f0;
}

#logoutLink:hover {
    color: red;
}

#logoutModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#deletePostModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#PinPostModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#UnpinPostModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#ReportPostModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#NotificationModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#JSNotificationModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#MuteUserModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#BlockUserModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* モーダル本体 */
.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    margin: 10% auto;
    /* 上下の位置調整 */
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    height: 300px;
    /* モーダルの高さを指定 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 内容を垂直方向に中央揃え */
}

.confirm-modal {
    display: none;
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, .45);

    z-index: 1000;

    padding: 20px;
    box-sizing: border-box;

    align-items: center;
    justify-content: center;
}

.confirm-modal-content {
    width: 100%;
    max-width: 400px;

    padding: 28px 24px 22px;
    box-sizing: border-box;

    background: #fff;
    border-radius: 14px;

    box-shadow: 0 10px 35px rgba(0, 0, 0, .18);

    text-align: center;
}

.confirm-modal-title {
    margin: 0 0 12px;

    color: #222;

    font-size: 17px;
    font-weight: 600;
}

.delete-history-query {
    margin: 0 0 22px;

    color: #666;
    font-size: 14px;

    overflow-wrap: anywhere;
}

.delete-history-option {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 22px;

    color: #555;
    font-size: 13px;

    text-align: left;
    cursor: pointer;
}

.delete-history-option input {
    flex-shrink: 0;
}

.confirm-modal-buttons {
    display: flex;
    gap: 10px;
}

.modal-button {
    flex: 1;

    margin: 0;
    padding: 10px 16px;

    border: none;
    border-radius: 30px;

    font-size: 15px;

    cursor: pointer;
}
.default-modal-button {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}
.confirm-button {
    background-color: #ff5757;
    color: white;
}

.cancel-button {
    background-color: #ccc;
    color: black;
}

.confirm-button:hover {
    background-color: #d94646;
}

.cancel-button:hover {
    background-color: #aaa;
}

.confirm-pinbutton {
    background-color: #333;
    color: white;
}

.confirm-pinbutton:hover {
    background-color: rgb(153, 150, 150);
}

.closemodal {
    background-color: #ccc;
    color: black;
}

.closemodal:hover {
    background-color: #aaa;
}

.logout-modal {
    font-size: 20px;
}

.post-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1002;
}

.post-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.post-modal-content textarea {
    width: 100%;
    height: 150px;
    border: none;
    border-radius: 4px;
    resize: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
}

.post-modal-content textarea:focus {
    outline: none;
    border: none;
}

.post-modal-content button {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    background-color: rgb(84, 212, 255);
    color: #fff;
}

.post-modal-content button:hover {
    background-color: rgb(24, 192, 248);
}

.post-modal-content button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.post-modal-content button:disabled:hover {
    background-color: #ccc;
}

.edit-post-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
    margin: 10% auto;
}

.edit-post-modal-content textarea {
    width: 100%;
    height: 150px;
    border: none;
    border-radius: 4px;
    resize: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
}

.edit-post-modal-content textarea:focus {
    outline: none;
    border: none;
}

.edit-post-modal-content button {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    background-color: rgb(84, 212, 255);
    color: #fff;
}

.edit-post-modal-content button:hover {
    background-color: rgb(24, 192, 248);
}

.edit-post-modal-content button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.edit-post-modal-content button:disabled:hover {
    background-color: #ccc;
}

.quote-post-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
    margin: 10% auto;
}

.quote-post-modal-content textarea {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 4px;
    resize: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
}

.quote-post-modal-content textarea:focus {
    outline: none;
    border: none;
}

.quote-post-modal-content button {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    background-color: rgb(84, 212, 255);
    color: #fff;
}

.quote-post-modal-content button:hover {
    background-color: rgb(24, 192, 248);
}

.quote-post-modal-content button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.quote-post-modal-content button:disabled:hover {
    background-color: #ccc;
}

.quote-post-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
    margin: 10% auto;
}

.quote-post-modal-content textarea {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 4px;
    resize: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
}

.quote-post-modal-content textarea:focus {
    outline: none;
    border: none;
}

.reply-post-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
    margin: 10% auto;
}

.reply-post-modal-content textarea {
    width: 100%;
    height: 150px;
    border: none;
    border-radius: 4px;
    resize: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
}

.reply-post-modal-content textarea:focus {
    outline: none;
    border: none;
}

.reply-post-modal-content button {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    background-color: rgb(32, 53, 59);
    color: #fff;
}

.reply-post-modal-content button:hover {
    background-color: rgb(24, 192, 248);
}

.reply-post-modal-content button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.reply-post-modal-content button:disabled:hover {
    background-color: #ccc;
}

#reply-post a {
    color: #0073e6;
    text-decoration: none;
}

#reply-post a:hover {
    text-decoration: underline;
}

.post-close-btn {
    background-color: rgb(200, 0, 0);
}

.post-close-btn:hover {
    background-color: rgb(255, 50, 50);
}

.ptitle {
    font-size: 20px;
    font-weight: bold;
}

.ptext {
    margin-top: -15px;
}

.post {
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-size: 17px;
    display: flex;
    /* flexbox を適用 */
    flex-direction: column;
    /* 縦並び */
    justify-content: space-between;
    /* 上下のコンテンツを適切に配置 */
    margin-left: -3px;
    cursor: pointer;
}

.post:hover {
    background-color: #f5f5f5;
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* 右端にメニューボタンを配置 */
    position: relative;
    gap: 10px;
}

.profile-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-size: 14px;
    color: gray;
    margin-top: -20px;
}

.post-content {
    font-size: 15px;
    margin-top: 5px;
}

.checkmark {
    display: inline-block;
    margin-left: -2px;
    margin-top: 1px;
    vertical-align: middle;
    user-select: none;
    cursor: pointer;
}

.checkmark svg {
    margin-top: -1px;
}

.time-ago {
    margin-left: auto;
    font-size: 14px;
    color: gray;
}

.edited::after {
    content: "（編集済み）";
}

.postcontent {
    font-size: 16px;
    margin-top: 10px;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.postuname {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s;
    cursor: pointer;
}

.postuname:hover {
    color: #a9a9a9;
}

.post-header a {
    color: #000;
    text-decoration: none;
}

.post-header a:hover {
    color: #000;
    text-decoration: none;
}

.post-menu-button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #555;
    margin-top: -40px;
    margin-left: auto;
    /* 右端に配置 */
    padding: 8px;
}

.post-menu {
    position: absolute;
    top: 30px;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 10;
    width: 120px;
}

.post-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-menu li {
    padding: 10px;
    cursor: pointer;
    text-align: left;
}

.post-menu li:hover {
    background: #f0f0f0;
}

.delete-post {
    color: red;
}

.reactions {
    padding: 5px;
}

.reactions span {
    margin-right: 10px;
    cursor: pointer;
    font-size: 17px;
    transition: all 0.15s;
}

.reaction-r:hover {
    color: #3bb0f9;
}

.reaction-q:hover {
    color: #06d842;
}

.reaction-l:hover {
    color: rgb(249, 24, 128);
}

.reaction-b:hover {
    color: #f9c74f;
}

.reaction-s:hover {
    color: #3bb0f9;
}

.reaction-count {
    font-size: 14px !important;
    font-family: "Segoe UI", Meiryo, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.post-quote-container {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f9f9f9;
}

.post-quote-container:hover {
    background-color: #f0f0f0;
}

.quote-container {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f9f9f9;
}

.quote-container:hover {
    background-color: #f0f0f0;
}

.quote-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.quote-header div {
    display: flex;
    flex-direction: column;
    gap: 0px;
    /* 隙間を完全になくす */
}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 6px;
    /* 画像と名前の間を詰める */
}

.quote-name {
    font-weight: bold;
    margin-bottom: 0;
    width: 100%;
}

.quote-username {
    color: gray;
    font-size: 14px;
    margin-top: -3px;
    /* さらに詰める */
    margin-left: -5px;
    width: 100%;
}

.quote-content {
    flex-grow: 1;
    text-align: left;
}

.quote-text {
    margin-top: 5px;
    margin-left: 5px;
}

.main-area {
    width: 100%;
    margin-top: 50px;
    padding: 32px 0 80px;
}

.page-header {
    position: relative;

    width: 100%;
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.exit {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;
    cursor: pointer;

    transition: background-color .2s;
}

.exit:hover {
    background-color: #f5f5f5;
}

.exit a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: #000;
}

.exit svg {
    width: 20px;
    height: 20px;
}

.search-window {
    position: relative;

    width: min(900px, calc(100% - 120px));
    margin: 0;
}
.search-window input[type="text"] {
    width: 100%;
    height: 52px;
    box-sizing: border-box;

    padding: 0 22px;

    border: 1px solid #e1e1e1;
    border-radius: 14px;
    background: #f8f8f8;

    color: #222;
    font-size: 15px;

    outline: none;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.search-window input[type="text"]::placeholder {
    color: #888;
}

.search-window input[type="text"]:hover {
    background: #f5f5f5;
    border-color: #d8d8d8;
}

.search-window input[type="text"]:focus {
    background: #fff;
    border-color: #bbb;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .035);
}

.suggest-box {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;

    z-index: 100;

    max-height: 420px;
    overflow-y: auto;

    padding: 6px;

    background: #fff;

    border: 1px solid #e5e5e5;
    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.suggest-box[hidden] {
    display: none !important;
}

#history_section:not([hidden]) + #suggest_section:not([hidden]) {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid #eee;
}

#historyList,
#suggestList {
    margin: 0;
    padding: 0;
    list-style: none;
}

.suggest-item {
    display: flex;
    align-items: center;

    min-height: 42px;
    box-sizing: border-box;

    padding: 9px 12px;

    border-radius: 8px;

    color: #222;
    font-size: 14px;
    line-height: 20px;

    cursor: pointer;

    transition: background-color .15s ease;
}

.suggest-item:hover {
    background: #f5f5f5;
}

.history-item {
    color: #555;
    justify-content: space-between;
    gap: 8px;
}

.history-content {
    display: flex;
    align-items: center;

    min-width: 0;
    flex: 1;
}

.history-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.history-item .icon-clock {
    display: inline-block;
    flex: 0 0 auto;

    width: 15px;
    height: 15px;

    margin-right: 9px;

    background-image: url('/assets/icons/clock.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    opacity: .65;
}

.history-delete {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 30px;
    height: 30px;

    margin: -4px -4px -4px 4px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: #888;

    font-size: 20px;
    font-family: inherit;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color .15s ease,
        color .15s ease;
}

.history-delete:hover {
    background: #e9e9e9;
    color: #333;
}

.history-delete:focus-visible {
    outline: 2px solid #aaa;
    outline-offset: 2px;
}

.empty-state {
    padding: 24px;
    text-align: center;
    opacity: .9;
}

.empty-title {
    margin: 0 0 6px;
    font-weight: 700;
}

.empty-desc {
    margin: 0;
    font-size: 14px;
    opacity: .8;
}

.search-filter-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
    padding-right: 10px;
}

.search-filter-row button {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 10px;
    padding: 7px 12px;

    background: transparent;
    color: #555;

    border: none;
    border-radius: 8px;

    font-size: 14px;
    cursor: pointer;

    transition: background-color .15s ease;
}

.search-filter-row button:hover {
    background: #f5f5f5;
}

.search-filter-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    box-sizing: border-box;

    background: rgba(0, 0, 0, .35);
}

.search-filter-modal[hidden] {
    display: none !important;
}

.search-filter-content {
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;

    padding: 22px;

    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
}

.search-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;
}

.search-filter-header h2 {
    margin: 0;
    font-size: 19px;
}

.search-filter-header button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    padding: 0;
    border: none;
    border-radius: 50%;

    background: transparent;
    color: #333;
    font-size: 22px;

    cursor: pointer;
}

.search-filter-header button:hover {
    background: #f3f3f3;
}

.search-filter-section {
    margin-bottom: 22px;
}

.search-filter-title {
    display: block;
    margin: 0 0 10px;

    font-size: 14px;
    font-weight: 700;
    color: #444;
}

.search-filter-section label:not(.search-filter-title) {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 9px 0;

    cursor: pointer;
}

.search-filter-section select {
    width: 100%;
    box-sizing: border-box;

    padding: 10px 12px;

    border: 1px solid #ddd;
    border-radius: 9px;

    background: #fff;
    font-size: 14px;
}

.apply-search-filter {
    width: 100%;

    padding: 11px 16px;

    border: none;
    border-radius: 10px;

    background: #333;
    color: #fff;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
}

.apply-search-filter:hover {
    background: #444;
}

.search-filter-bar {
    width: min(900px, calc(100% - 120px));
    margin: 0 auto 10px;

    display: flex;
    justify-content: flex-end;
}

.search-filter-bar button {
    display: flex;
    align-items: center;
    gap: 6px;

    padding: 7px 12px;

    background: transparent;
    color: #555;
    border: none;
    border-radius: 8px;

    font-size: 14px;
    cursor: pointer;
}

.search-filter-bar button:hover {
    background: #f5f5f5;
}

.search-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.search-user:hover {
    background: #f7f7f7;
}

.search-user-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    padding: 3px;
    border: solid 1px #dcdcdc;
}

.search-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.search-user-name {
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-user-username {
    margin-top: 2px;
    font-size: 14px;
    color: #777;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .modal-content {
        margin: 20% auto;
        width: 80%;
    }

    .timeline-switch {
        display: none;
    }

    #timeline-dropdown {
        display: block;
        padding: 8px;
    }
}

@media (max-width: 450px) {
    .logo img {
        width: 115px;
    }

    .ptitle {
        font-size: 25px;
        margin: 50px 0 20px 0;
    }

    .post-modal {
        z-index: 1002;
    }

    .post-modal-content {
        width: 100%;
        height: 100%;
    }

    .post-modal-content textarea {
        height: 250px;
        margin: 60px 0 20px -10px;
    }

    .edit-post-modal-content {
        height: 100%;
        margin: -3% auto;
    }

    .edit-post-modal-content textarea {
        height: 250px;
        margin: 60px 0 20px -10px;
        width: 90%;
    }

    .quote-post-modal-content {
        height: 100%;
        margin: -3% auto;
    }

    .quote-post-modal-content textarea {
        height: 150px;
        margin: 20px 0 20px -10px;
        width: 90%;
    }

    .post-quote-container {
        margin-left: -5px;
        width: 340px;
    }

    .reply-post-modal-content {
        height: 100%;
        margin: -3% auto;
    }

    .reply-post-modal-content textarea {
        height: 150px;
        margin: 20px 0 20px -10px;
        width: 90%;
    }

    .modal-content {
        margin: 40% auto;
    }

    .material-symbols-outlined {
        font-size: 17px;
    }

    .checkmark {
        margin-top: 1px;
    }

    .content {
        width: calc(100% - 24px);
        max-width: none;

        margin: 5px auto 0 !important;
        padding: 0;
    }

    .post-content {
        word-break: break-all;
    }

    .postcontent {
        word-break: break-all;
    }
    .main-area {
        padding: 20px 0 60px;
    }

    .page-header {
        display: flex;
        align-items: center;
        gap: 10px;

        padding: 0 12px;
        box-sizing: border-box;
    }

    .exit {
        position: relative;
        top: 17px;
        left: -1px;
    }

    .search-window {
        flex: 1;
        width: auto;
        min-width: 0;
        margin: 0;
    }

    .search-window input[type="text"] {
        height: 48px;
        padding: 0 16px;
        border-radius: 12px;
        font-size: 16px;
    }

    .suggest-box {
        max-height: 360px;
        border-radius: 11px;
    }
}
