#forum_head {
    border-radius: var(--border-radius-lg);
    background: var(--gradient-primary);
    padding: 30px 0;
    position: relative;
    overflow: hidden;
    font-size: 0;
    margin-top: 15px;
}

#forum_head h1 {
    font-size: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
}

#forum_head_bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: auto;
    min-width: 1200px;
    transform: translate(-50%, -50%);
}

#forum_head_hero {
    position: relative;
    z-index: 1;
    height: auto;
    max-width: 95%;
    width: 500px;
    margin: -22px 0 15px 10px;
    filter: drop-shadow(1px 2px 3px rgba(0, 0, 0, 0.2));
}

#forum_search_container {
    width: 100%;
    padding: 0 30px;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

#forum_search input {
    width: 100%;
    border-radius: var(--border-radius-md);
    padding: 16px 70px 15px 20px;
    border: 1px solid var(--color-content-op);
    background: var(--color-content-op);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    color: var(--color-text);
}

#forum_search button {
    font-size: 0;
    position: absolute;
    top: 0;
    right: 30px;
    height: 100%;
    background: transparent;
    box-shadow: none !important;
    color: var(--color-primary);
    border: none;
    padding: 8px 15px 0;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
}

#forum_search button i {
    font-size: 32px;
}

#forum_share_btn {
    display: none;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    float: right;
    text-decoration: none;
    padding: 10px;
    line-height: 0;
    margin-right: 15px;
    z-index: 1;
    position: relative;
}

#widget_forum_search {
    padding: 0;
    min-height: unset;
}

#widget_forum_search #forum_head {
    padding: 15px 0;
}

#widget_forum_search #forum_search_container {
    padding: 0 15px;
}

#widget_forum_search #forum_search input {
    padding-right: 45px;
}

#widget_forum_search #forum_search button {
    right: 15px;
}

#forum_body .pagination {
    margin-top: 30px;
    text-align: center;
}

#forum_body .pagination a {
    padding: 10px 20px;
    margin: 0 5px;
}

#forum_intro {
    padding: 30px 15px 5px;
}

#thread_mod_controls {
    border: 1px solid var(--color-text-trans);
    border-radius: var(--border-radius-lg);
    background: var(--color-content-light);
    margin: 15px 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 15px;
    position: relative;
}

#thread_mod_controls:after {
    position: absolute;
    content: "Moderation Controls";
    top: -9px;
    left: 50px;
    font-size: 0.688rem;
    background: var(--color-content-light);
    border-radius: var(--border-radius-xl);
    padding: 2px 15px;
    border-top: 1px solid var(--color-text-trans);
}

#thread_mod_controls > * {
    white-space: nowrap;
    margin: 15px 15px 0;
}

#thread_review_container {
    position: relative;
    background: var(--color-content);
    margin: 30px 0;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

#thread_review_container > p {
    font-size: 0.875rem;
    padding: 15px 50px 15px 15px;
    background: rgba(255, 196, 109, 0.2);
    font-weight: 500;
    cursor: default;
    margin: 0;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

#thread_review_container > i {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 1.5rem;
    pointer-events: none !important;
}

#thread_review_container > p:hover {
    text-decoration: underline;
}

#thread_review_container #thread_review_content {
    font-size: 14px;
    padding-bottom: 15px;
    display: none;
}

#thread_review_container #thread_review_content p {
    margin: 0;
    padding: 15px 15px 0 15px;
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}


#thread_review_container #thread_review_content p a.garbage {
    color: #f00;
}

#thread_security_msg {
    font-size: 13px;
    padding: 10px 15px;
    border-left: 3px solid rgba(255, 183, 76, 0.4);
    margin: 5px 0 20px;
}

#thread_security_msg a {
    font-weight: 500;
}

.forum-verify-msg p {
    font-size: 0.875rem;
    padding: 30px;
    background: rgba(255, 196, 109, 0.2);
    margin: 30px 0;
    font-weight: 500;
}

.forum-verify-msg p:before {
    content: '\E837';
    font-family: kandi-pad;
    padding-right: 5px;
}

.forum-category, .forum-threads {
    margin-top: 30px;
    font-size: 0;
}

.forum-category > h2 {
    display: inline-block;
    vertical-align: baseline;
    width: 46%;
    margin-top: 0;
    margin-bottom: 10px;
    padding-right: 15px;
}

.forum-category > strong {
    font-size: 14px;
    font-weight: 500;
    width: 10%;
    display: inline-block;
    vertical-align: baseline;
    text-align: center;
}

.forum-category > strong:nth-child(4) {
    width: 34%;
    text-align: left;
}

.forum-topics, .thread-block {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--color-content);
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
}

.no-threads .thread-block {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    font-size: 16px;
}

.forum-preview-block {
    padding: 15px;
    border-bottom: 1px solid var(--color-base);
    text-decoration: none;
    color: var(--color-text);
    display: block;
    cursor: pointer;
    position: relative;
}

.forum-preview-block.pinned:before {
    content: '\e89b';
    font-family: 'kandi-pad';
    font-size: 24px;
    position: absolute;
    top: 2px;
    left: 2px;
    color: var(--color-secondary);
    transform: rotate(-20deg);
}

.forum-topic-block {
    position: relative;
    padding-left: 18px;
}

.forum-thread-block {
    padding: 30px;
}

.forum-preview-block:last-child {
    border-bottom: none;
}

.forum-preview-block h3 {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
}

.forum-preview-block h3 a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 1.125rem;
}

.forum-thread-block h3 {
    font-size: 18px;
    margin: 5px 0;
    line-height: 1.2;
}

.forum-thread-block h3 a {
    font-family: "Google Sans Flex", Arial, Helvetica, sans-serif;
    font-weight: 600;
}

.forum-thread-block.future-thread h3 a {
    color: var(--color-text-mid);
}

.thread-start-msg {
    font-size: 12px;
    color: var(--color-secondary);
    display: block;
    margin: 5px 0 -13px;
}

.forum-preview-block .topic-info {
    font-size: 13px;
    width: 46%;
    display:  inline-block;
    vertical-align: middle;
    padding-right:  15px;
}

.forum-thread-block .thread-info {
    width: 55%;
    display: inline-block;
    vertical-align: middle;
}

.forum-thread-block .thread-data, .forum-thread-block .thread-topic {
    font-size: 16px;
    width: 20%;
    display: inline-block;
    vertical-align: middle;
    text-align: right;
}

.forum-thread-block .thread-topic {
    width: 25%;
}

.forum-thread-block .thread-data {
    color: var(--color-text-op);
    padding-right: 15px;
}

.forum-thread-block .thread-data span {
    white-space: nowrap;
}

.forum-thread-block .thread-data span:last-child {
    padding-left: 8%;
}

.forum-thread-block .thread-data i {
    display: inline-block;
    vertical-align: middle;
    font-size: 18px;
    padding: 0 5px;
}
.forum-thread-block .thread-data i.kp-comment {
    font-size: 16px;
}

.forum-preview-block .topic-info p {
    margin: 5px 0;
    color: var(--color-text-op);
}

.forum-preview-block .topic-data {
    font-size: 14px;
    display: inline-block;
    vertical-align: middle;
    width: 10%;
    text-align: center;
}

.forum-preview-block:hover {
    background: linear-gradient(90deg, var(--color-primary-trans) -100%, var(--color-content) 100%);
    border-bottom-color: var(--color-primary-trans);
}

.forum-preview-block:hover h3, .forum-thread-block:hover h3 a {
    color: var(--color-primary);
    text-shadow: 0 1px 1px var(--color-content);
}

.forum-preview-block .topic-latest {
    display: inline-block;
    vertical-align: middle;
    font-size: 14px;
    width: 34%;
    cursor: default;
}

.forum-preview-block .topic-latest > p {
    font-size: 13px;
    color: var(--color-text-mid);
}

.forum-preview-block .latest-thread {
    font-size: 0;
}

.forum-preview-block .latest-thread .thread-user-pic {
    display: inline-block;
    vertical-align: top;
    width: 36px;
}

.forum-preview-block .latest-thread .thread-user-pic img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.forum-preview-block .latest-thread .thread-details {
    display: inline-block;
    vertical-align: top;
    width: calc(100% - 36px);
    font-size: 0.813rem;
    padding-left: 15px;
    color: var(--color-text-op);
}

.forum-preview-block .latest-thread .thread-details a {
    text-decoration: none;
    color: var(--color-text);
}

.forum-preview-block .latest-thread .thread-details h4 {
    margin-bottom: 0;
}

.forum-preview-block .latest-thread .thread-details h4 a {
    font-family: "Google Sans Flex", Arial, Helvetica, sans-serif;
    font-weight: 600;
}

.forum-preview-block .latest-thread .thread-details a.thread-user {
    color: var(--color-text-op);
}

.forum-preview-block .latest-thread .thread-details a:hover {
    text-decoration: underline;
    color: var(--color-primary) !important;
}

.forum-thread-block .thread-user-pic {
    display: inline-block;
    vertical-align: middle;
    width: 60px;
}

.forum-thread-block .thread-user-pic img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.forum-thread-block .thread-info .thread-user {
    text-decoration: none;
    color: var(--color-text-op);
}

.forum-thread-block .thread-info .thread-details {
    display: inline-block;
    vertical-align: middle;
    width: calc(100% - 60px);
    padding: 0 15px;
    font-size: 14px;
}

.forum-thread-block .thread-info .thread-date {
    font-size: 13px;
    color: var(--color-text-op);
}

.topic .forum-threads h1 {
    border-left: 2px solid var(--color-neutral);
    padding-left: 10px;
    font-size: 1.5rem;
    font-weight: 800;

}

.topic .forum-threads h2 {
    text-transform: none;
    font-weight: 400;
    font-size: 16px;
    margin: -20px 0 15px;
    padding-top: 5px;
    border-left: 2px solid var(--color-neutral);
    padding-left: 10px;
}

.forum.topic .forum-thread-block .thread-topic {
    display: none;
}

.forum.topic .forum-thread-block .thread-info {
    width: 70%;
}

.forum.topic .forum-thread-block .thread-data {
    width: 30%;
}

#new_thread_btn {
    float: right;
    font-size: 16px;
    margin-top: 15px;
}

#topic_sort {
    font-size: 1rem;
    z-index: 1;
    margin: 17px 0 15px;
}

#topic_sort select {
    font-size: 1rem;
}

#threadcrumbs {
    padding: 15px 15px 0 0;
    font-size: 14px;
    overflow: auto;
}

.thread #threadcrumbs {
    padding: 15px 0;
    font-size: 16px;
}

#threadcrumbs > i {
    display: inline-block;
    vertical-align: middle;
    padding: 0 5px;
    color: var(--color-text-mid);
}

#threadcrumbs > span {
    color: var(--color-text-op);
}

#threadcrumbs > button {
    padding-bottom: 12px;
    float: right;
}

#threadcrumbs > button i {
    font-size: 21px;
    display: inline-block;
    vertical-align: middle;
    line-height: 16px;
}

.thread .thread-wrapper {
    margin-top: 30px;
    font-size: 0;
}

.thread .thread-userpic {
    display: inline-block;
    vertical-align: top;
    width: 60px;
    height: 60px;
    margin-right: 15px;
    margin-top: 5px;
}

.thread .thread-userpic img {
    border-radius: 50%;
}

.thread .thread-content {
    display: inline-block;
    vertical-align: middle;
    width: calc(100% - 75px);
    font-size: 16px;
    padding: 15px;
    border-radius: var(--border-radius-lg);
    background: var(--color-content);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.thread #thread_primary .thread-content {
    padding-bottom: 5px;
    position: relative;
}

.thread #thread_replies .thread-content {
    width: 100%;
    padding-bottom: 0;
    border-radius: var(--border-radius-md);
}

#thread_primary .pin-thread:after {
    content: ' Pin';
}

#thread_primary .pin-thread.pinned:after {
    content: ' Unpin';
}

#thread_primary .pin-thread.pinned {
    color: var(--color-secondary);
}

#cotd_patterns {
    padding-top: 30px;
    margin: 15px 0 -10px 75px;
    min-height: 172px;
    opacity: 0;
}

#cotd_patterns .cotd-snapshot {
    display: inline-block;
    vertical-align: middle;
    width: 140px;
    height: 140px;
    background: var(--color-content);
    border: 1px solid var(--color-neutral-trans);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
}

#cotd_patterns .cotd-snapshot > img {
    width: auto;
    height: auto;
    max-width: 94%;
    max-height: 94%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#cotd_patterns .cotd-snapshot.cotd-see-all {
    text-decoration: none;
    text-align: center;
    padding-top: 15px;
    color: var(--color-text);
    font-weight: 600;
    font-size: 14px;
    height: 90px;
    line-height: 1.2;
    box-shadow: 0 0 10px var(--color-secondary-mid);
    border-color: var(--color-secondary);
    margin-left: 10px;
}

#cotd_patterns .cotd-snapshot.cotd-see-all strong {
    display: block;
    color: var(--color-secondary);
    font-size: 24px;
    line-height: 1;
    padding-top: 3px;
}

#cotd_patterns .cotd-snapshot.cotd-see-all:hover, #cotd_patterns .cotd-snapshot.cotd-see-all:hover strong {
    color: #fff;
    background: var(--color-secondary);
}

#cotd_patterns .cotd-snapshot.cotd-see-all i {
    display: inline-block;
    vertical-align: middle;
    font-size: 12px;
    line-height: 1.6;
}

#thread_replies_closed {
    padding: 15px;
    border: 1px solid var(--color-text-trans);
    border-radius: var(--border-radius-md);
    text-align: center;
    font-size: 14px;
    background: var(--color-content-mid);
    margin-bottom: 50px;
}

.thread h1 {
    text-transform: none;
    font-weight: 700;
}

#thread_subject_edit {
    padding: 10px;
    border-radius: var(--border-radius-md);
    width: 95%;
    font-size: 18px;
    border: 1px solid var(--color-neutral-mid);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    background: var(--color-content);
}

.thread h1.has-error .error {
    font-size: 13px;
    font-weight: normal;
    color: #f00;
    margin: 15px 0 5px;
}

.thread h1.has-error #thread_subject_edit {
    border-color: #ffadad;
}

#thread_primary .thread-body {
    padding: 15px;
    opacity: 0;
    max-height: 600px;
}

.thread-body {
    white-space: pre-line;
    overflow: auto;
}

.thread-body p {
    margin: 2px 0;
}

.thread-body img {
    max-width: 100%;
}

.thread-body ul, .thread-body ol {
    padding: 0 15px;
    line-height: 0.5;
    margin: 0;
}

.thread-body ul li, .thread-body ol li {
    line-height: 1.4;
}

.thread .thread-details {
    font-size: 14px;
    padding-bottom: 15px;
}

.thread #thread_primary .thread-details {
    border-bottom: 1px solid var(--color-neutral-trans);
    padding-bottom: 12px;
    position: relative;
    padding-right: 70px;
    z-index: 1;
}

.thread #thread_replies .thread-details {
    padding-bottom: 0;
    margin-bottom: 15px;
}

.thread #thread_replies .thread-details .menu-items {
    top: 140%;
}

.thread #thread_replies .thread-details:has(a > span) {
    margin-top: -10px;
    margin-bottom: 22px;
    line-height: 2;
}

.thread #thread_primary .thread-details:has(a > span) {
    margin-top: -10px;
    line-height: 2;
    padding-bottom: 18px;
}

.thread #thread_replies .thread-container.comsecondary .thread-details .menu-items {
    top: 50%;
    margin-top: 10px;
}

.thread .thread-details a {
    text-decoration: none;
    font-weight: 500;
    position: relative;
    color: var(--color-text);
}

.thread .thread-details a > i.kp-crown {
    color: #ffca00;
    font-size: 0.75rem;
    display: inline-block;
    vertical-align: middle;
    margin-top: -1px;
}

.thread .thread-details a.delete-comment {
    color: #fb6060;
}

.thread #thread_replies .pinned .thread-details a.pin-comment {
    color: var(--color-secondary);
    position: relative;
}

.thread #thread_replies .pinned .thread-details a.pin-comment:after {
    content: 'ned';
}

.thread .thread-details a > span {
    font-size: 10px;
    color: var(--color-secondary);
    font-weight: 600;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: -1px;
    white-space: nowrap;
}

.thread .thread-details a > span.pqc {
    color: #5b8fd0;
}

.thread .thread-details a > span.mod {
    color: #935cc5;
}

.thread .thread-details a > span.admin {
    color: #189186;
}

.thread .thread-details a:not(.comment-option):hover {
    text-decoration: underline;
}

.thread .thread-details .thread-date {
    color: var(--color-text-op);
    font-size: 0.813rem;
    white-space: nowrap;
}

.thread .thread-counts {
    padding: 5px 0 0;
    margin-top: 15px;
    border-top: 1px solid var(--color-neutral-trans);
    position: relative;
}

.thread .thread-counts > span {
    display: inline-block;
    vertical-align: middle;
    font-size: 14px;
    padding: 0 5px;
    margin-right: 15px;
    margin-top: 6px;
    color: var(--color-text-op);
}

.thread .thread-counts > span.comment-like-link {
    float: right;
    font-size: 11px;
    cursor: pointer;
}

.thread .thread-counts > span.comment-like-link:hover {
    text-decoration: underline;
    color: var(--color-text);
}

.thread .thread-counts > span.like-post {
    cursor: pointer;
}

.thread .thread-counts > span.like-post.liked i {
    color: var(--color-secondary);
}

.thread .thread-counts > span.like-post:hover i {
    color: var(--color-secondary);
    text-shadow: 0 0 2px var(--color-secondary);
}

.thread .thread-counts > span i {
    color: var(--color-text-op);
    display: inline-block;
    vertical-align: middle;
    font-size: 18px;
}

.thread .thread-counts .thread-topic {
    position: absolute;
    bottom: 0;
    right: 0;
    margin-bottom: -5px;
    margin-right: -15px;
}

.thread .thread-topic a {
    border-radius: var(--border-radius-lg) 0;
    padding-left: 25px;
}

#thread_reply_count {
    z-index: 2;
    position: relative;
    margin: 40px 0 30px;
    height: 40px;
    padding-top: 10px;
}

#comment_sort {
    float: right;
    margin-top: -10px;
}

#thread_new_reply .thread-userpic, #thread_replies .thread-userpic {
    width: 40px;
    height: 40px;
    margin: 0 15px;
}

#thread_replies .thread-userpic {
    margin-left: -60px;
}

#thread_replies .thread-userpic.reply-pic {
    margin-left: 0;
}

#new_reply_form, #thread_replies .new-reply-form form {
    display: inline-block;
    vertical-align: top;
    width: calc(100% - 70px);
    font-size: 14px;
    position: relative;
    border-radius: var(--border-radius-md);
}

.reply-loading {
    position: absolute;
    top: 0;
    left: 0;
    text-align: center;
    background: var(--color-base);
    padding-top: 100px;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 2;
    opacity: 0.5;
}

.reply-loading .ringloader {
    background: var(--color-text);
    display: inline-block;
    top: unset !important;
    left: unset !important;
}

#thread_new_reply, #thread_replies {
    font-size: 0;
}

#new_reply_content {
    display: block;
    width: 100%;
    border-radius: var(--border-radius-md);
    resize: none;
    height: 100px !important;
    padding: 15px;
    border: 1px solid var(--color-neutral-mid);
    overflow: hidden;
    background: var(--color-content);
}

.kpmde-wrapper #new_reply_content {
    border: none;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    resize: vertical;
    overflow: auto;
}

.new-reply-content {
    color: var(--color-text-mid);
}

.kpmde-wrapper .new-reply-content {
    color: var(--color-text);
}

.new-reply-container {
    border-radius: var(--border-radius-md);
    position: relative;
}

.new-reply-form .error {
    font-size: 13px;
    color: #f00;
}

.new-reply-container .kpmde-toolbar {
    background: var(--color-content);
}

.new-reply-container.active-reply-container {
    background: var(--color-content);
}

.reply-btns {
    text-align: right;
    padding: 15px;
}

.reply-btns > a {
    display: inline-block;
    vertical-align: middle;
    padding: 5px;
    margin-right: 30px;
}

.thread-content .ringloader {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -16px;
    margin-left: -16px;
}

#thread_replies {
    margin-top: 30px;
    overflow: auto;
    padding-bottom: 10px;
}

#thread_replies .ringloader {
    margin: 0 auto;
}

.thread #thread_replies .thread-counts {
    margin-top: 0;
    border: none;
    padding-top: 2px;
}

.thread #thread_replies .thread-wrapper {
    margin-top: 15px;
    padding-left: 75px;
    position: relative;
    min-width: 300px;
}

.thread #thread_replies .thread-body {
    font-size: 14px;
    margin: 0;
}

.thread #thread_replies .thread-body.nocomment {
    font-style: italic;
    color: var(--color-text-op);
    margin: 0;
}

.thread .thread-details .comment-menu {
    float: right;
    margin: -5px -10px -15px 0;
    display: none;
}

.thread #thread_primary .thread-details .comment-menu {
    position: absolute;
    float: none;
    right: 40px;
    top: 50%;
    translate: 0 -50%;
    margin: -3px 0 0;
}

.thread #thread_primary .thread-details:has(a > span) .comment-menu {
    margin: 0;
}

.thread .thread-wrapper:hover .thread-details .comment-menu {
    display: block;
}

#thread_rating {
    position: absolute;
    top: 50%;
    right: 0;
    margin-top: -6px;
    translate: 0 -50%;
}

.thread #thread_primary .thread-details:has(a > span) #thread_rating {
    margin-top: -2px;
}

#thread_rating .content-rating {
    width: 32px;
    height: 32px;
    line-height: 1.4;
    font-size: 1.5rem;
}

#thread_replies .new-reply-form {
    padding-top: 15px;
    position: relative;
    width: 100%;
    z-index: 1;
}

#thread_replies .new-reply-form form {
    width: calc(100% - 60px);
}

#thread_replies .new-reply-form .new-reply-content {
    display: none;
}

#thread_replies .reply-comment, #thread_replies .like-post {
    cursor: pointer;
    font-size: 13px;
    display: inline-block;
    vertical-align: middle;
}

#thread_replies .reply-comment i, #thread_replies .like-post i {
    font-size: 16px;
}

#thread_replies .reply-comment:hover, #thread_replies .reply-comment:hover i {
    color: var(--color-secondary);
}

.forum.thread #thread_replies .CodeMirror, #thread_replies .CodeMirror-scroll {
    min-height: 100px;
}

#thread_replies .com-reply-form {
    display: none;
}

#thread_replies .com-reply-form .thread-userpic {
    margin-left: 0;
    width: 36px;
    height: 36px;
}

#thread_replies .thread-container.comsecondary {
    margin-left: 35px;
}

#thread_replies .thread-container.has-replies:before {
    content: '';
    position: absolute;
    top: 0px;
    left: 30px;
    width: 0px;
    height: 100%;
    border-left: 1px dashed var(--color-text-trans);
}

#thread_replies .thread-container {
    position: relative;
}

#thread_replies .thread-container.pinned:after {
    content: '\e89b';
    font-family: 'kandi-pad';
    font-size: 24px;
    position: absolute;
    top: -12px;
    left: 62px;
    color: var(--color-secondary);
    transform: rotate(-30deg);
}

#thread_replies .thread-container.comsecondary .thread-userpic:before {
    content: '';
    position: absolute;
    top: 0;
    left: -5px;
    width: 20px;
    background: transparent;
    height: 20px;
    border-bottom: 1px dashed var(--color-text-trans);
    border-bottom-left-radius: 15px;
    z-index: 1;
}

#thread_replies .thread-container > .comsecondary:last-child .thread-userpic:before {
    border-left: 1px dashed var(--color-text-trans);
}

#thread_replies .new-reply-form .thread-userpic:before {
    display: none !important;
}

#thread_replies .thread-container > .comsecondary:last-child:after {
    content: '';
    position: absolute;
    top: 0;
    left: -6px;
    width: 3px;
    background: var(--color-base);
    height: 100%;
}

#thread_replies .thread-container:hover:before, #thread_replies .thread-container:hover > .comsecondary > .thread-wrapper .thread-userpic:before, #thread_replies .thread-container:hover > .thread-wrapper .expandcollapse {
    border-color: var(--color-text-mid);
}

#thread_replies .thread-container:hover > .thread-wrapper .expandcollapse:before {
    color: var(--color-text-mid);
}

.thread-edit {
    position: relative;
    margin-top: 5px;
    border-radius: var(--border-radius-md);
}

#thread_replies .thread-edit {
    font-size: 14px;
}

.thread-edit .error {
    font-size: 13px;
    color: #f00;
}

.thread .thread-wrapper.edited .thread-details:after {
    content: '- Edited';
    font-size: 11px;
    color: var(--color-text-op);
    font-style: italic;
    padding-left: 2px;
}

.thread #thread_primary .thread-wrapper.edited .thread-details:after {
    padding-left: 0;
}

.expandcollapse {
    position: absolute;
    width: 13px;
    height: 13px;
    border: 1px dashed var(--color-text-mid);
    bottom: 8px;
    left: 24px;
    background: var(--color-base);
    cursor: pointer;
    text-align: center;
    color: var(--color-text-mid);
    font-size: 12px;
    line-height: 1;
}

.expandcollapse:hover {
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
    background: var(--color-content);
}

.expandcollapse.expanded {
    font-size: 0;
}

.expandcollapse:before {
    content: '\e802';
    font-family: 'kandi-pad';
    font-size: 11px;
    line-height: 1.2;
    padding-right: 5px;
}

.expandcollapse.expanded:before {
    content: '\e816';
}

/* TOPIC BADGES */

.thread-topic a {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    background: var(--color-neutral);
    padding: 8px 16px;
    border-radius: var(--border-radius-xl);
    text-transform: uppercase;
    border: 1px solid var(--color-neutral-mid);
    box-shadow: 0 0 8px var(--color-neutral);
}

.thread-topic a:hover {
    color: #fff !important;
    border-color: #fff !important;
}

.forum-topic-block a[data-topic] > span {
    content: '';
    width: 4px;
    height: 100%;
    display: inline-block;
    vertical-align: top;
    background: var(--color-neutral-mid);
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: none !important;
}

.thread-images {
    font-size: 0;
}

#thread_liked_by {
    margin-left: 80px;
    text-decoration: none;
    display: inline-block;
    padding: 5px 8px;
    color: var(--color-text-op);
    border-radius: var(--border-radius-md);
    padding-left: 18px;
    margin-top: 5px;
}

#thread_liked_by:hover {
    background: var(--color-content);
    color: var(--color-text);
}

#thread_liked_by img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--color-neutral-mid);
    margin-left: -12px;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background: var(--color-content);
}

#thread_liked_by span {
    display: inline-block;
    vertical-align: middle;
    font-size: 12px;
    font-weight: 600;
}

#thread_replies .thread-images {
    padding-top: 10px;
    margin-bottom: 15px;
}

#thread_replies .thread-images.alone {
    margin-top: 15px;
}

#thread_replies .thread-images + .thread-patterns {
    margin-top: -10px;
}

#thread_replies .thread-patterns {
    padding-bottom: 15px;
}

.thread-images .thread-image {
    display: inline-block;
    vertical-align: middle;
    width: 100px;
    height: 100px;
    position: relative;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-neutral-mid);
    margin: 5px;
    cursor: pointer;
    overflow: hidden;
}

.thread-images .thread-image:hover {
    opacity: 0.8;
}

.thread-images .thread-image img {
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.15s linear;
}

.thread-images .thread-image:hover img {
    transform: translate(-50%, -50%) scale(1.1);
}

#forum_image_viewer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999;
    background: var(--color-base);
    width: 100%;
    height: 100%;
    display: none;
}

#forum_image_viewer .ringloader {
    position: fixed;
    top: 50%;
    left: 50%;
    margin-left: -16px;
    margin-top: -16px;
}

#forum_image_viewer img {
    position: fixed;
    top: 50%;
    left: 50%;
    max-width: 90%;
    max-height: 90%;
    transform: translate(-50%, -50%);
    display: none;
}

#forum_image_viewer #img_viewer_close {
    position: fixed;
    z-index: 2;
    top: 30px;
    right: 30px;
    font-size: 32px;
    color: var(--color-text);
    line-height: 0;
    cursor: pointer;
    width: 50px;
    height: 50px;
    text-align: center;
    border-radius: 50%;
    background: var(--color-content-mid);
    padding-top: 9px;
}

#forum_image_viewer #img_viewer_close:hover {
    color: #f16767;
}

#forum_image_viewer .img-viewer-nav {
    position: fixed;
    top: 50%;
    left: 30px;
    height: 80px;
    padding: 24px 15px 0;
    font-size: 32px;
    background: var(--color-content-trans);
    border-radius: var(--border-radius-md);
    margin-top: -40px;
    cursor: pointer;
    z-index: 2;
    text-shadow: 0 0 5px var(--color-content-mid);
}

#forum_image_viewer .img-viewer-nav:hover {
    background: var(--color-content-mid);
    color: var(--color-primary);
}

#forum_image_viewer #img_viewer_next {
    left: auto;
    right: 30px;
}

/* NEW THREAD MODAL */

#new_thread_form {
    padding-top: 15px;
}

#modal_new_thread .modal-body p.error, #modal_edit_content_rating .modal-body p.error {
    font-size: 0.813rem;
    color: #f00;
    background: #ffcaca;
    padding: 1px 5px;
    border-radius: var(--border-radius-sm);
}

#topic_select_description {
    margin: -15px 10px 15px;
    font-size: 0.75rem;
    color: var(--color-text-op);
}

#new_thread_rating {
    margin-top: 30px;
    border-bottom: 1px solid var(--color-text-trans);
    padding-bottom: 15px;
}

#new_thread_rating_beta {
    font-size: 0.75rem;
    border-radius: var(--border-radius-md);
    padding: 6px 10px;
    background: var(--color-content-light);
    font-style: italic;
}

#new_thread_ratings, #edit_thread_ratings {
    padding-top: 5px;    
    display: inline-block;
    position: relative;
}

#new_thread_rating_reason {
    display: none;
    color: var(--color-text-op);
    font-size: 0.75rem;
    font-style: italic;
}

#mod_new_thread {
    padding: 10px 15px;
    border: 1px solid var(--color-neutral-mid);
    border-radius: var(--border-radius-md);
    margin-top: 30px;
}

#mod_new_thread input {
    font-size: 14px;
    padding: 10px;
}

#mod_new_thread strong {
    display: block;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--color-neutral-trans);
    margin-bottom: 10px;
}

#new_thread_image_thumbs {
    font-size: 0;
    padding: 10px 0;
}

.new-img-thumb {
    width: 100px;
    height: 100px;
    position: relative;
    border: 1px solid var(--color-neutral-mid);
    border-radius: var(--border-radius-md);
    margin: 15px 5px 0;
    display: inline-block;
    vertical-align: middle;
    background: var(--color-neutral-mid);
}

.new-img-thumb img {
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.new-img-thumb .ringloader {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -16px !important;
    margin-left: -16px !important;
}

.new-img-thumb .new-img-thumb-delete, .new-pattern-delete {
    position: absolute;
    font-size: 16px;
    top: -2px;
    right: -3px;
    z-index: 1;
    background: var(--color-content);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-align: center;
    color: #f00;
    line-height: 0;
    padding-top: 7px;
    cursor: pointer;
    box-shadow: 0 1px 3px #000;
}

.new-pattern-delete {
    top: 3px;
    right: 3px;
}

.new-img-thumb .new-img-thumb-delete:hover, .new-pattern-delete:hover {
    background: #f00;
    color: var(--color-content);
}

#newImgError p, #newCommImgError p, #newEditImgError p {
    font-size: 13px;
    color: #f00;
    margin: 5px 0;
}

.thread-pattern {
    display: inline-block;
    vertical-align: top;
    width: 140px;
    overflow: hidden;
    position: relative;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-neutral-mid);
    margin: 10px 5px 0;
    font-size: 13px;
    min-height: 147px;
    background: var(--color-content);
}

.thread-pattern .ringloader {
    margin-top: -16px !important;
    margin-left: -16px !important;
}

.thread-pattern > a {
    display: block;
    width: 100%;
    height: 95px;
    position: relative;
}

.thread-pattern > a > img {
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.25s;
}

#new_thread_patterns {
    font-size: 0;
    margin-top: 5px;
}

.thread-pattern .thread-pattern-details {
    padding: 10px 5px 5px;
    border-top: 1px solid var(--color-neutral-trans);
}

.thread-pattern .thread-pattern-details span {
    display: block;
    font-size: 9px;
    color: var(--color-text-op);
    text-transform: uppercase;
    padding: 2px 0 0;
}

.thread-pattern .thread-pattern-details a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
    display: inline-block;
    line-height: 1;
}

.thread-pattern a:hover, .thread-pattern a:hover + .thread-pattern-details a {
    color: var(--color-primary);
}

.thread-pattern a:hover img {
    opacity: 0.8;
}

.thread-pattern:hover img {
    max-width: 95%;
    max-height: 95%;
}

/* KPMDE Styles */
.kpmde-wrapper {
    font-size: 0;
    position: relative;
    padding-bottom: 45px;
    border: 1px solid var(--color-text-trans);
    border-radius: var(--border-radius-md);
}

.kpmde-wrapper textarea {
    background: transparent;
    width: 100%;
    resize: vertical;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    border: none;
    box-shadow: none;
    margin: 0;
    font-size: 14px;
    min-height: 300px !important;
    line-height: 1.4;
    display: block !important;
    padding: 15px;
    color: var(--color-text);
}

.kpmde-wrapper .kpmde-toolbar {
    border: none;
    opacity: 1 !important;
    padding: 0 5px;
    z-index: 2;
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    border-radius: 0 0 10px 10px;
    border-top: 1px solid var(--color-text-trans);
    background: var(--color-content);
}

.kpmde-wrapper .kpmde-toolbar button {
    color: var(--color-text-op);
    border: none;
    width: 40px;
    height: 40px;
    padding-top: 6px;
    vertical-align: middle;
    background: transparent;
    box-shadow: none;
    font-weight: 700;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    margin: 0;
    cursor: pointer;
    font-size: 16px;
}

.kpmde-wrapper .kpmde-toolbar button.forum-smiley {
    font-size: 19px;
    padding-top: 8px;
}

.kpmde-wrapper .kpmde-toolbar button.forum-smiley.active {
    color: var(--color-secondary);
}

.kpmde-wrapper .kpmde-toolbar button.preview {
    float: right;
    display: block;
    width: auto;
    padding: 5px 10px 0;
}

.kpmde-wrapper .kpmde-toolbar button.preview i {
    display: inline-block;
    vertical-align: middle;
    line-height: 1.4;
}

.kpmde-wrapper .kpmde-toolbar button.preview:after {
    content: 'Preview';
    font-family: 'montserrat';
    font-size: 13px;
    padding-left: 5px;
    font-weight: 400;
    display: inline-block;
    vertical-align: middle;
}

.kpmde-wrapper .kpmde-toolbar button.preview.active {
    color: var(--color-secondary) !important;
}

.kpmde-wrapper .kpmde-toolbar button:hover {
    color: var(--color-secondary) !important;
    background: rgba(255, 255, 255, 0.1);
}

.kpmde-wrapper .kpmde-toolbar:after, .kpmde-wrapper .kpmde-toolbar:before {
    display: none;
}

.kpmde-wrapper .kpmde-toolbar .separator {
    font-size: 0;
    width: 0;
    border-right: 1px dotted var(--color-neutral-mid);
    border-left: none;
    height: 40px;
    vertical-align: top;
    display: inline-block;
    color: transparent;
    text-indent: -10px;
    margin: 0 6px;
}

.kpmde-wrapper .kpmde-toolbar button.forum-gif {
    padding-top: 0;
}

.kpmde-wrapper .kpmde-toolbar button.forum-gif:before {
    content: 'GIF';
    font-weight: 800;
    font-size: 12px;
}

.kpmde-wrapper .kpmde-preview {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: var(--border-radius-md);
    width: 100%;
    height: 100%;
    padding:  15px 15px 45px;
    overflow: auto;
    display: none;
    font-size: 14px;
    white-space: pre-line;
}

.kpmde-wrapper .kpmde-preview p {
    margin: 2px 0;
}

.kpmde-wrapper .kpmde-preview ul, .kpmde-wrapper .kpmde-preview ol  {
    padding: 0 15px;
    line-height: 0.5;
    margin: 0;
}

.kpmde-wrapper .kpmde-preview ul li, .kpmde-wrapper .kpmde-preview ol li {
    line-height: 1.4;
}

.kpmde-wrapper .kpmde-preview {
    max-width: 100%;
}

.kpmde-wrapper.previewing:before {
    content: 'Preview';
    font-size: 10px;
    text-transform: uppercase;
    position: absolute;
    top: 2px;
    right: 10px;
    z-index: 4;
    color: var(--color-secondary);
}

.kpmde-wrapper.previewing .kpmde-preview {
    display: block;
}

.kpmde-wrapper.previewing textarea {
    opacity: 0;
    pointer-events: none;
}

.kpmde-wrapper.previewing .kpmde-toolbar button:not(.no-disable) {
    opacity: 0.5;
    pointer-events: none;
}

.kpmde-wrapper.previewing .kpmde-toolbar button.preview {
    color: var(--color-secondary);
}

/* GIF Modal */

#gif_search {
    position: relative;
}

#gif_search i, #gif_search img {
    position: absolute;
    top: 17px;
    right: 12px;
    font-size: 24px;
    color: var(--color-secondary);
}

#gif_search img {
    top: 25px;
    width: 50px;
    filter: hue-rotate(96deg);
    display: none;
}

#gif_search input {
    padding-right: 50px;
}

#gif_grid {
    height: 50vh;
    text-align: center;
    padding: 15px 0;
    overflow: auto;
}

#gif_grid.loading {
    background: url(/assets/images/site/dotloader.gif) center center no-repeat;
}

#gif_grid .gif-thumb {
    display: inline-block;
    vertical-align: middle;
    height: 180px;
    width: 33%;
    margin:  0;
    position: relative;
    cursor: pointer;
}

#gif_grid .gif-thumb img {
    max-width: 96%;
    max-height: 96%;
    height: auto;
    width: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid transparent;
    border-radius: var(--border-radius-md);
    transition: 0.25s;
}

#gif_grid .gif-thumb:hover img {
    max-width: 100%;
    max-height: 100%;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
    background: var(--color-neutral-trans);
}

/* EMOJIS */

emoji-picker {
    position: absolute;
    z-index: 3;
    margin-left: -40px;
    height: 0;
    margin-top: 0;
    transition: .35s;
    opacity: 0;
    pointer-events: none;
}

emoji-picker.active {
    height: 300px;
    margin-top: -300px;
    opacity: 1;
    pointer-events: all;
}

/* MEDIA QUERIES */
@media(max-width: 1280px) {
    .forum:not(.topic) .forum-thread-block .thread-info {
        width: 100%;
        padding-bottom: 15px;
    }

    .forum-thread-block .thread-topic {
        width: 50%;
    }

    .forum:not(.topic) .forum-thread-block .thread-data {
        width: 50%;
        float: left;
        text-align: left;
        padding: 7px 0 0;
    }
}

@media(max-width: 1080px) and (min-width: 901px) {
    .forum-preview-block .topic-latest, .forum-category > strong:nth-child(4) {
        display: none;
    }

    .forum-category > h2 {
        width: 68%;
    }

    .forum-category > strong {
        width: 16%;
    }

    .forum-preview-block .topic-info {
        width: 68%;
    }

    .forum-preview-block .topic-data {
        width: 16%;
    }

    .thread .thread-details .comment-menu {
        display: block !important;
    }
}

@media(max-width: 1080px) {
    #thread_new_reply .thread-userpic {
        margin-left: 0;
    }

    #thread_replies {
        padding-left: 10px;
        margin-right: -10px;
    }

    #thread_new_reply .thread-userpic, #thread_replies .thread-userpic, #thread_new_reply .thread-userpic img, #thread_replies .thread-userpic img {
        width: 30px !important;
        height: 30px !important;
    }
    
    #thread_replies .thread-userpic {
        margin-left: 0;
        margin-right: -40px;
        margin-top: 8px;
        position: relative;
        z-index: 1;
    }

    #new_reply_form {
        width: calc(100% - 55px);
    }
    
    .thread #thread_replies .thread-wrapper {
        padding-left: 0;
    }
    
    #thread_replies .thread-container.has-replies:before {
        left: -5px;
        top: 5px;
    }
    
    #thread_replies .thread-container.comsecondary {
        margin-left: 20px;
    }

    #thread_replies .thread-container > .comsecondary:last-child:after {
        left: -26px;
        top: 5px;
    }
    
    #thread_replies .thread-container.comsecondary .thread-userpic:before {
        left: -25px;
        top: -6px;
        width: 12px;
        height: 12px;
    }

    #thread_replies .thread-container.pinned:after {
        left: 30px;
        top: -17px;
    }

    .thread #thread_replies .thread-details {
        margin-left: 35px;
    }
    
    .expandcollapse {
        left: -10px;
        bottom: -6px;
    }
    
    #thread_replies .com-reply-form .thread-userpic {
        margin-left: -20px;
        margin-right: 5px;
        margin-top: 0;
    }
    
    #thread_replies .new-reply-form form {
        width: calc(100% - 25px);
    }

    .thread #thread_replies .thread-container.has-replies > .thread-wrapper .thread-counts {
        padding-left: 10px;
    }
    
    .thread #thread_replies .thread-body {
        border-top: 1px solid var(--color-neutral-trans);
        padding-top: 15px;
    }

    .thread #thread_replies .thread-body.nocomment {
        padding-left: 40px;
        border-top: none;
        padding-top: 0;
        margin-bottom: -8px;
    }
}

@media(max-width: 1024px) {

    .thread #sidebar_content {
        position: relative !important;
        display: block;
        width: 100%;
        left: unset !important;
        right: unset !important;
        top: unset !important;
        bottom: unset !important;
        padding: 30px 15px 0;
    }
    
    .thread #sidebar_content .sidebar-widget:not(#widget_forum_search) {
        display: none !important;
    }

    .thread #sidebar_content #forum_search_container {
        width: 90%;
    }

    .thread #forum_share_btn {
        display: block;
    }

    .thread #content.has-sidebar {
        padding-left: 15px;
        padding-top: 0;
    }
    
    .thread .thread-details .comment-menu {
        display: block !important;
    }
}

@media(max-width: 900px) {
    #sidebar_content .sidebar-widget:not(#widget_forum_search) {
        display: none !important;
    }

    #widget_forum_search {
        margin-bottom: 10px;
    }
    
    .forum:not(.primary) #forum_search_container {
        padding: 0 15px;
        width: 90%;
    }
    
    .forum:not(.primary) #forum_search input {
        padding: 12px 45px 11px 15px;
    }
    
    .forum:not(.primary) #forum_search button {
        padding: 6px 8px 0;
        right: 15px;
    }

    .forum:not(.primary) #forum_head {
        margin-top: 0;
        padding: 15px 0;
    }

    .forum:not(.primary) #forum_share_btn {
        display: block;
    }
}

@media(max-width: 700px) {
    .forum-preview-block .topic-latest, .forum-category > strong:nth-child(4) {
        display: none;
    }

    .forum-category > h2 {
        width: 68%;
    }

    .forum-category > strong {
        width: 16%;
    }

    .forum-preview-block .topic-info {
        width: 68%;
    }

    .forum-preview-block .topic-data {
        width: 16%;
    }
}

@media(max-width: 600px) {
    .forum:not(.primary) #breadcrumbs {
        font-size: 14px;
        padding: 0;
        opacity: 0;
        height: 0;
    }

    .forum:not(.primary) #breadcrumbs a:first-child, .forum:not(.primary) #breadcrumbs i:nth-child(2), .forum:not(.primary) #breadcrumbs a span {
        display: none;
    }

    #threadcrumbs {
        padding-right: 0;
    }

    #threadcrumbs > button {
        display: block;
        width: 100%;
    }

    .forum:not(.primary) #forum_search_container {
        width: 84% !important;
    }
    
    .forum.topic .forum-thread-block, .forum.search .forum-thread-block {
        padding: 15px;
    }
    
    .forum.topic .forum-thread-block .thread-info, .forum.search .forum-thread-block .thread-info {
        width: 100%;
        padding-bottom: 15px;
    }

    .forum.topic .forum-thread-block .thread-data, .forum.search .forum-thread-block .thread-data {
        width: 100%;
        float: none;
        padding: 0 0 0 65px;
        text-align: left;
        font-size: 14px;
        margin-top: -10px;
    }

    .forum-thread-block .thread-data span:last-child {
        padding-left: 15px;
    }

    .forum-thread-block .thread-data i {
        font-size: 14px;
    }

    .forum-thread-block .thread-data i.kp-comment {
        font-size: 12px;
    }

    .forum.topic .thread-user-pic, .forum.search .thread-user-pic {
        width: 50px;
    }

    .forum.topic .thread-user-pic img, .forum.search .thread-user-pic img {
        width: 100%;
        height: auto;
    }

    .forum.topic .forum-thread-block .thread-info .thread-details, .forum.search .forum-thread-block .thread-details {
        padding: 0 0 0 15px;
        width: calc(100% - 50px);
    }

    .forum-preview-block.pinned:before {
        top: 0px;
        right: 2px;
        left: auto;
        transform: rotate(30deg);
    }

    #thread_primary .thread-userpic {
        display: block;
        z-index: 1;
        position: relative;
        width: 50px;
        height: 50px;
        margin: -10px 0 -10px -5px;
    }
    
    #thread_primary .thread-userpic img {
        max-width: 100%;
        height: auto;
    }
    
    .thread #thread_primary .thread-content {
        width: 100%;
    }

    #thread_liked_by {
        margin-left: 5px;
    }

    #cotd_patterns {
        margin-left: 0;
    }

    .forum-thread-block .thread-topic {
        width: auto;
        position: absolute;
        bottom: 15px;
        right: 10px;
    }

    .forum-thread-block .thread-topic a {
        font-size: 10px;
        padding: 5px 10px;
    }

    .forum.search .forum-thread-block .thread-data {
        margin-top: 10px;
        padding-left: 0;
    }
}

@media(max-width: 530px) {
    #thread_mod_controls {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media(max-width: 480px) {

    .forum-category > h2 span {
        display: none;
    }

    .forum:not(.topic):not(.search) .forum-thread-block {
        padding: 15px;
    }
    
    .forum:not(.topic):not(.search) .forum-thread-block .thread-info {
        text-align: center;
    }

    .forum:not(.topic):not(.search) .forum-thread-block .thread-topic {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }

    .forum:not(.topic):not(.search) .forum-thread-block .thread-data {
        width: 100%;
        float: none;
        text-align: center;
        padding: 0;
    }

    .forum:not(.topic):not(.search) .thread-user-pic {
        display: block;
        margin: 15px auto 15px;
        width: auto;
    }

    .forum:not(.topic):not(.search) .forum-thread-block .thread-info .thread-details {
        padding: 5px 0;
        width: 100%;
    }

    #thread_primary .thread-counts > span {
        margin-right: 8px;
    }

    #cotd_patterns {
        margin-left: -25px;
        min-height: 142px;
    }

    #cotd_patterns .cotd-snapshot {
        width: 105px;
        height: 105px;
        margin-left: 25px;
    }

    #cotd_patterns .cotd-snapshot.cotd-see-all {
        margin-left: 30px;
        width: 130px;
        height: 74px;
        padding-top: 8px;
    }

    #gif_grid .gif-thumb {
        width: 50%;
    }
}

@media(max-width: 430px) {
    #thread_replies .thread-container > .thread-container > .thread-container > .thread-container > .thread-container .thread-container .thread-edit .kpmde-wrapper {
        padding-bottom: 85px;
    }
}