@import url(https://fonts.googleapis.com/css?family=Rowdies|Modak&display=swap);

#key-geetest,
.f404 img,
.no-events-img,
.sign-content img {
    pointer-events: none !important
}

.footer .friendlinks h6,
.footer .friendlinks li {
    display: inline;
    margin: 0 .5em
}

.box,
.navbar-brand,
img.shice {
    position: relative
}

.led-icon,
.led-text,
.p,
.rabbit-doll {
    vertical-align: middle
}

.box,
.navbar-brand,
.p,
.risktips,
.tdtv_sx,
.wobbt-img {
    overflow: hidden
}

body {
    cursor: url("../css/cursor/default.cur"), default;
    background-image: url("../img/bg.webp");
    background-position-x: center;
    background-position-y: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover
}

a:hover,
button,
select {
    cursor: url("../css/cursor/link.cur"), pointer
}

input,
input:focus,
textarea {
    cursor: url("../css/cursor/Text-Select.cur"), text
}

.post-actions,
.select-none {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none
}

.pink {
    background-color: #777 !important
}

@media screen and (min-width:680px) {
    .joe_div {
        background: url(../img/vuong-mieng.png) right 10px bottom 10px/10% no-repeat
    }
}

.joe_div {
    color: #989898;
    word-break: break-all;
    line-height: 20px;
    border-radius: 10px;
    border: 2px solid #777;
    padding: 28px 14px 14px
}

.footer {
    --footer-bg: #22292d;
    --footer-color: #f2f2f2
}

.scroll-ing .scrolling-hide.float-right.position-center {
    transform: translate(200%, -50%)
}

.enlighter-default .enlighter {
    max-height: 400px;
    overflow-y: auto !important
}

@media (max-width:640px) {
    .meta-right .meta-like {
        display: unset !important
    }
}

::-webkit-scrollbar {
    width: 6px;
    height: 1px
}

::-webkit-scrollbar-thumb {
    background-color: #12b7f5;
    background-image: -webkit-linear-gradient(45deg, #ff5d8f 25%, transparent 25%, transparent 50%, #ff5d8f 50%, #ff5d8f 75%, transparent 75%, transparent)
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, .2);
    background: #f6f6f6
}

.navbar-brand {
    margin: 0
}

.navbar-brand:before {
    content: "";
    position: absolute;
    left: -665px;
    top: -460px;
    width: 200px;
    height: 15px;
    background-color: rgba(255, 255, 255, .5);
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -webkit-animation: 6s ease-in infinite searchLights;
    -o-animation: 6s ease-in infinite searchLights;
    animation: 6s ease-in infinite searchLights
}

.github-badge,
.github-badge .badge-subject {
    background-color: orange;
    height: 23px;
    display: inline-block
}

@-moz-keyframes searchLights {
    50% {
        left: -100px;
        top: 0
    }

    65% {
        left: 120px;
        top: 100px
    }
}

@keyframes searchLights {

    40%,
    80% {
        left: -100px;
        top: 0
    }

    60% {
        left: 120px;
        top: 100px
    }
}

#u_sign {
    -webkit-user-select: none !important;
    user-select: none !important;
    -moz-user-select: none !important
}

.thanhdieu_footer_hz {
    width: auto;
    max-width: 550px;
    text-align: center
}

.github-badge {
    border-radius: 4px;
    text-shadow: none;
    font-size: 12px;
    color: #fff;
    line-height: 15px;
    margin-bottom: 5px
}

.github-badge .badge-subject {
    padding: 4px 4px 4px 6px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px
}

.github-badge .badge-value {
    display: inline-block;
    padding: 4px 6px 4px 4px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px
}

.title-theme,
ul.nav {
    font-weight: 700
}

#key-geetest {
    display: none
}

.item-heading a {
    font-weight: 600
}

.f404 img,
.no-events-img {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none
}

.ws-null-search {
    padding: 30px 0;
    pointer-events: none
}

.ws-null-search img {
    width: 280px;
    opacity: .8
}

.ws-null-search p {
    margin-top: 20px
}

.user-auth-icon img {
    margin-top: .26rem;
    height: 1.26em !important;
    max-width: 6.2em !important
}

.ws-pay-imgs img {
    border-radius: 10px;
    border: 2px solid #453fa0
}

.risktips {
    border: 1px solid #ff8400;
    padding: 3px 8px;
    color: red;
    border-radius: 12px;
    margin-top: 10px;
    line-height: 18px;
    font-size: 12px
}

.risktips .icons {
    font-size: 12px;
    background-position: -309px -67px;
    width: 16px;
    display: inline-block;
    vertical-align: bottom;
    height: 18px;
    font-weight: 700
}

.risktips span a {
    color: #ff8400
}

.risktips i {
    font-size: 13px;
    margin-right: 5px
}

.border-img img {
    border-radius: 15px
}

.ws-border-pay {
    border: 1px dashed #4f555d
}

.comment-content img,
.tdtv_led {
    border-radius: 12px
}

.ws-cmt-mt {
    margin-top: 17px
}

.tdtv_led {
    user-select: none;
    background: url("../img/ledads.png");
    text-align: center;
    height: 80px;
    border: 0 solid #e8eff5;
    margin: 10px 0
}

@media (max-width:768px) {
    .tdtv_led {
        display: none
    }
}

.tdtv:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden
}

.p,
.tdtv_sx {
    height: 80px
}

.tdtv_sx {
    width: auto;
    line-height: 80px;
    text-align: left
}

.p {
    padding: 0 10px 0 16px
}

.led-icon {
    margin-left: 20px
}

.led-icon,
.led-text {
    display: inline-block;
    font-size: 60px
}

.box {
    padding: 10px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px
}

.box:before {
    content: '';
    position: absolute;
    width: 150%;
    height: 50%;
    background: linear-gradient(315deg, #0cf, #d400d4);
    animation: 6s linear infinite animate
}

@keyframes animate {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

.box:after {
    content: '';
    position: absolute;
    inset: 6px;
    background: var(--body-bg-color);
    border-radius: 15px;
    z-index: 2
}

.td-content-copyright {
    position: relative;
    font-weight: 400;
    color: #2997f7;
    z-index: 4;
    margin: 15px
}

.footer .footer-colors {
    width: 100%;
    height: 4px;
    background-color: #333;
    background-image: repeating-linear-gradient(to right, #68103b, #68103b 50px, #703f28 50px, #703f28 100px, #a16b13 100px, #a16b13 150px, #a5a02c 150px, #a5a02c 200px, #5e812d 200px, #5e812d 250px, #1c6075 250px, #1c6075 300px, #403161 300px, #403161 350px);
    background-position: 0 0;
    background-repeat: repeat;
    animation: 200s linear infinite paused animate-colors
}

.footer .colors-shadow::after {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18, 18, 18, .8), #121212);
    content: ''
}

.footer .friendlinks {
    margin: 0 -.5em 20px;
    color: #4f4f4f;
    font-size: 12px;
    line-height: 2;
    word-break: keep-all
}

.footer .friendlinks h6 {
    font-weight: 400;
    font-size: 12px
}

.footer .friendlinks ul {
    display: inline
}

.footer .friendlinks a {
    color: #4f4f4f
}

.footer .friendlinks a:hover {
    color: #acacac
}

.footer .copyright {
    text-align: center;
    font-size: 12px;
    line-height: 1.5
}

.footer .copyright .asline {
    display: block;
    font-style: normal
}

@media(min-width:768px) {
    .footer .copyright .asline {
        display: inline
    }
}

@media all {
    .footer:hover .footer-colors {
        animation-play-state: running
    }
}

@keyframes animate-colors {
    0% {
        background-position: 0 0
    }

    100% {
        background-position: 7000px 0
    }
}

img.shice {
    top: -2px;
    height: 20px;
    pointer-events: none
}

.posts-item.card::before {
    content: "";
    display: block;
    background: #fc625d;
    top: 10px;
    left: 15px;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    box-shadow: 16px 0 #fdbc40, 32px 0 #35cd4b;
    z-index: 1;
    position: absolute
}

.posts-item.card {
    padding: 26px 10px 10px
}

@media only screen and (max-width:600px) {
    b {
        overflow: hidden;
        text-overflow: ellipsis
    }
}

.crown3,
.legacy-crown,
.premium-crown {
    -webkit-pointer-events: none;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    left: 0;
    width: 130%;
    height: auto;
    position: absolute
}

.history-null img,
.item-thumbnail:after,
.plus-one,
.rabbit-doll {
    pointer-events: none
}

.premium-crown {
    top: 1px;
    transform: scale(1.17)
}

.legacy-crown {
    top: 0;
    transform: scale(1.138)
}

.crown3 {
    top: -5px;
    transform: scale(1.56)
}

.pay-qrcode,
.pay-qrcode2 {
    width: 130px;
    height: 130px;
    display: inline-block;
    position: relative
}

.pay-qrcode2 {
    margin-left: 47px
}

.pay-qrcode img,
.pay-qrcode2 img {
    -webkit-box-shadow: 4px 0 38px -11px #292929;
    -moz-box-shadow: 4px 0 38px -11px #292929;
    box-shadow: 4px 0 38px -11px #292929;
    border-radius: 7px
}

.qr-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    border-radius: 2px;
    color: #fff;
    background-color: rgba(34, 34, 34, .89);
    padding: 2px 0;
    font-size: 13px
}

.pay-notice .notice {
    border-radius: 12px;
    padding: 7px;
    background: #0fb90d
}

.td-home {
    font-weight: 700;
    background-image: -webkit-linear-gradient(left, #10ff08, #303030 25%, #10ff08 50%, #303030 75%, #10ff08);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    -webkit-background-size: 200% 100%;
    -webkit-animation: 1s linear infinite maskedAnimation
}

@keyframes maskedAnimation {
    0% {
        background-position: 0 0
    }

    100% {
        background-position: -100% 0
    }
}

.icon.clicked {
    font-family: Arial, Helvetica, sans-serif;
    animation: .5s click-animation;
    color: red
}

.plus-one {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: red;
    font-size: 1.2em;
    opacity: 1;
    animation: 1s forwards plus-one-animation
}

@keyframes click-animation {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.2)
    }
}

@keyframes plus-one-animation {
    0% {
        transform: translateY(0);
        opacity: 1
    }

    100% {
        transform: translateY(-30px);
        opacity: 0
    }
}

.but-download {
    display: flex;
    justify-content: flex-end;
    align-items: center
}

.rabbit-doll,
a.down {
    display: inline-block;
    cursor: pointer
}

.payment-copy {
    opacity: 1 !important
}

.posts-item {
    position: relative !important
}

.new {
    z-index: 99;
    position: absolute;
    height: 35px;
    left: 0;
    top: 0
}

.sys-item-88,
.sys-item-99 {
    margin-top: 10px;
    height: 40px;
    line-height: 40px;
    color: #fff;
    font-weight: 500;
    text-align: center;
    font-size: 14px
}

.new img {
    -webkit-user-drag: none
}

25% {
    clip-path: inset(0 96% 0 0)
}

50% {
    clip-path: inset(96% 0 0 0);
    filter: hue-rotate(360deg)
}

75% {
    clip-path: inset(0 0 0 96%)
}

.item-thumbnail:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background .35s;
    border-radius: 8px;
    z-index: 2;
    max-width: 765px;
    margin: 0 auto;
    pointer-events: none
}

.item-thumbnail:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    background: url(../img/icon/7306-pepegay.png) 0 0/100% 100% no-repeat;
    z-index: 3;
    -webkit-transform: scale(2);
    transform: scale(2);
    transition: transform .35s, opacity .35s, -webkit-transform .35s;
    opacity: 0
}

.item-thumbnail:hover:before {
    background: rgba(0, 0, 0, .5)
}

.item-thumbnail:hover:after {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1
}

a.down {
    width: 100%;
    height: 30px;
    line-height: 30px;
    border-radius: 15px;
    background: linear-gradient(to right, #4f6dee, #67bdf9);
    color: #fff;
    text-align: center;
    text-shadow: none;
    border: none;
    outline: 0;
    box-shadow: none;
    padding: 0;
    margin: 0
}

#foot_remake,
.wz-color>a,
.wz-color>span>a {
    color: var(--muted-color)
}

.sys-item-99 {
    background-image: url(../img/main/p-bg.png);
    border-radius: 6px
}

.sys-item-88 {
    background-image: url(../img/main/y-bg.png);
    border-radius: 6px
}

.rabbit-doll {
    width: 200px;
    height: 200px;
    background: url(../img/main/2024.webp) 40%/100% no-repeat;
    position: absolute;
    left: 78%;
    top: 25px;
    z-index: 50;
    animation: 1.2s ease-in-out infinite alternate lampLine;
    margin-left: -1px;
    transform-origin: 50% 0
}

@media screen and (max-width:665px) {
    .rabbit-doll {
        display: none
    }
}

@keyframes lampLine {
    0% {
        transform: rotate(10deg)
    }

    to {
        transform: rotate(-10deg)
    }
}

.wobbt-img {
    width: 100%;
    height: auto;
    margin-bottom: 8px;
    object-fit: cover
}

.wobbt-img img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    transition: .2s .1s
}

.wobbt-img img:hover {
    transform: scale(1.03)
}

.pagenav .current,
.pagenav .page-numbers,
.pagenav a {
    border: 0;
    padding: 8px 14px;
    background: linear-gradient(148deg, hsla(0, 0%, 100%, 0), var(--main-bg-color));
    -webkit-box-shadow: 0 0 8px 0 rgba(95, 95, 95, .15);
    box-shadow: 0 0 8px 0 rgba(95, 95, 95, .15);
    border-radius: 6px
}

.pagenav {
    text-align: center;
    white-space: nowrap;
    padding: 8px !important
}

.pagenav .current {
    background: linear-gradient(90deg, #7de4d7 0, #ff89ee 100%);
    color: #fff !important
}

.back-to-top {
    cursor: pointer;
    position: fixed;
    right: 80px;
    top: -600px;
    z-index: 2;
    width: 70px;
    height: 900px;
    background: url(../img/icon/scroll.gif);
    transition: .5s ease-in-out;
    opacity: 1
}

.f-not-found {
    text-align: center;
    padding: 35px 0
}

.f-not-found img {
    width: 250px
}

.payvip-modal {
    background-image: url(../img/main/left.png), url(../img/main/right.png);
    background-position: 0 100%, 100% 100%;
    background-repeat: no-repeat, no-repeat;
    background-size: 20%
}

.notyf.success {
    background: linear-gradient(90deg, rgb(249 15 15 / 70%), rgba(61, 189, 249, .8));
    border-radius: 18px 0 0 18px
}

.float-right .crolltop {
    --this-color: #ffffff;
    --this-bg: linear-gradient(123deg, #461B93 0%, #461B93 40%, #6A3CBC calc(40% + 1px), #6A3CBC 60%, #8253D7 calc(60% + 1px), #8253D7 70%, #F78F1E calc(70% + 1px), #F78F1E 100%)
}

.float-right .toggle-theme {
    --this-color: #ffffff;
    --this-bg: linear-gradient(56deg, rgb(255, 180, 172) 0%, rgb(255, 180, 172) 40%, rgb(103, 145, 134) calc(40% + 1px), rgb(103, 145, 134) 50%, rgb(38, 78, 112) calc(50% + 1px), rgb(38, 78, 112) 70%, rgb(255, 235, 211) calc(70% + 1px), rgb(255, 235, 211) 100%)
}

.float-right .qrcode-btn {
    --this-color: #ffffff;
    --this-bg: linear-gradient(110deg, #FFD9E8 4%, #FFD9E8 40%, #DE95BA calc(40% + 1px), #DE95BA 50%, #7F4A88 calc(50% + 1px), #7F4A88 70%, #4A266A calc(70% + 1px), #4A266A 100%)
}

.float-right .service-xxx {
    --this-color: #ffffff;
    --this-bg: linear-gradient(123deg, #2E99B0 0%, #2E99B0 40%, #FCD77F calc(40% + 1px), #FCD77F 60%, #FF2E4C calc(60% + 1px), #FF2E4C 75%, #1E1548 calc(75% + 1px), #1E1548 100%)
}

#foot_remake {
    margin-right: 6px;
    overflow: overlay;
    display: inline-flex;
    text-align: right
}

.item-foot {
    color: var(--minor);
    height: 45px;
    line-height: 45px;
    transition: color .35s;
    white-space: nowrap
}

.swal-footer {
    text-align: center;
    margin-top: 4px;
    margin-bottom: 6px
}

.swal-button {
    font-size: 14px
}

.count>svg,
.count>text {
    display: none
}

.wz-span {
    border: 1px solid #bbb;
    height: auto;
    color: #bbb;
    font-size: 10px;
    border-radius: 2px;
    padding: 0 2px
}

.swal-bath {
    background: url(../img/main/wave.png) 0 0/10px 3px repeat-x;
    height: 3px;
    width: 100%;
    position: fixed;
    z-index: 98;
    bottom: 40px;
    transition: bottom .35s;
    -webkit-animation: 30s linear infinite waves-r2l;
    -moz-animation: 30s linear infinite waves-r2l;
    -ms-animation: waves-r2l 30s linear infinite;
    -o-animation: 30s linear infinite waves-r2l;
    animation: 30s linear infinite waves-r2l
}

@-webkit-keyframes waves-r2l {
    0% {
        background-position: 0 0
    }

    100% {
        background-position: -552px 0
    }
}

@keyframes waves-r2l {
    0% {
        background-position: 0 0
    }

    100% {
        background-position: -552px 0
    }
}

@-webkit-keyframes waves-l2r {
    0% {
        background-position: 0 0
    }

    100% {
        background-position: 552px 0
    }
}

@keyframes waves-l2r {
    0% {
        background-position: 0 0
    }

    100% {
        background-position: 552px 0
    }
}

.payvip-icon {
    background-image: url(https://i.imgur.com/1R8nLTz.jpeg);
    background-size: auto
}

/* ========== Forum Styles ========== */

/* Forum Layout: vertical left tabs + posts + right sidebar */
.forum-layout {
    gap: 15px;
}


/* Left sidebar tabs (PC) */
.forum-left-tabs {
    width: 160px;
    flex-shrink: 0;
}

.forum-left-tabs .zib-widget {
    position: sticky;
    top: 80px;
}

.forum-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.forum-cat-list li a {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    font-size: 13px;
    color: var(--muted-color);
    text-decoration: none;
    transition: all .2s;
    border-right: 2px solid transparent;
    white-space: nowrap;
}

.forum-cat-list li a:hover {
    color: var(--main-color);
    background: var(--muted-border-color);
}

.forum-cat-list li.active a {
    color: var(--theme-color);
    font-weight: 600;
    border-right-color: var(--theme-color);
    background: var(--focus-color-opacity1);
}

/* Mobile tabs - hidden on PC */
.forum-mobile-tabs {
    display: none;
    width: 100%;
}

/* bbs-home-tab (mobile horizontal scroll tabs) */
.bbs-home-tab .fixed-wrap-nav {
    padding: 8px 15px;
}

.bbs-home-tab .tab-nav-theme,
.forum-mobile-tabs .tab-nav-theme {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bbs-home-tab .tab-nav-theme::-webkit-scrollbar,
.forum-mobile-tabs .tab-nav-theme::-webkit-scrollbar {
    display: none;
}

.bbs-home-tab .tab-nav-theme li,
.forum-mobile-tabs .tab-nav-theme li {
    flex-shrink: 0;
    list-style: none;
}

.bbs-home-tab .tab-nav-theme li a,
.forum-mobile-tabs .tab-nav-theme li a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted-color);
    transition: all .25s;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}

.bbs-home-tab .tab-nav-theme li a:hover,
.forum-mobile-tabs .tab-nav-theme li a:hover {
    color: var(--main-color);
}

.bbs-home-tab .tab-nav-theme li.active a,
.forum-mobile-tabs .tab-nav-theme li.active a {
    color: var(--theme-color);
    border-bottom-color: var(--theme-color);
    font-weight: 600;
}

.bbs-home-tab .tab-nav-theme li a badge,
.forum-mobile-tabs .tab-nav-theme li a badge {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 8px;
}

/* ========== FAB Hover Dropdown ========== */
.float-btn.add-btn {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 99;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    background: var(--theme-color, #3b82f6);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.float-btn.add-btn .icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.float-btn.add-btn:hover {
    transform: scale(1.1);
}

.drop-newadd {
    min-width: 150px;
    padding: 8px 0;
    border-radius: 10px;
    background: var(--main-bg-color, #fff);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

.btn-newadd {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--main-color, #333);
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-newadd:hover {
    background: var(--muted-border-color, #f3f4f6);
    color: var(--main-color, #333);
    text-decoration: none;
}

.btn-newadd icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 16px;
    flex-shrink: 0;
}

.btn-newadd text {
    font-size: 13px;
    font-weight: 500;
}

/* ========== Forum Post Cards — Complete Zibll CSS ========== */
.active.jb-pink {
    --this-bg: rgba(27, 145, 255, .1);
    --this-color: #3097f8
}

.badge-question {
    border-radius: .45em 2px;
    padding: 0 .25em;
    line-height: 1.4em
}

.badge-question>text {
    font-size: .8em;
    margin-left: 2px;
    vertical-align: .05em
}

.btn-follow,
[ajax-action] {
    overflow: hidden;
    position: relative
}

.forum-title {
    font-size: 16px;
    padding: 0;
    margin: 0
}

.excerpt:hover,
.forum-title a:hover {
    color: var(--key-color)
}

.forum-posts.mini .avatar-img {
    --this-size: 50px
}

.forum-posts {
    --this-padding: 15px 20px;
    padding: var(--this-padding);
    display: flex;
    transition: .3s;
    position: relative
}

.forum-posts.manage .badge-status {
    right: 3em
}

.forum-posts+.forum-posts {
    border-top: 1px solid var(--main-border-color)
}

.forum-posts+.ajax-pag,
.forum-posts+.no-more,
.forum-posts+.post_ajax_loader>.mb20 {
    padding-top: 30px;
    border-top: 1px solid var(--main-border-color)
}

.forum-posts+.theme-pagination {
    margin-top: 0
}

.forum-posts .entry-info {
    flex-grow: 1
}

.forum-posts.mini .entry-info {
    max-width: calc(100% - 70px)
}

.forum-posts .forum-title {
    font-weight: 500
}

.forum-posts .forum-title badge {
    font-weight: 400
}

.forum-posts .content,
.forum-posts .forum-title>a {
    line-height: 22px
}

.forum-posts .forum-title>a.text-ellipsis {
    line-height: 2.5em;
    display: block;
    margin-top: -.5em
}

.forum-posts .item-meta {
    color: var(--muted-color);
    opacity: .6;
    transition: opacity .15s
}

.forum-posts:hover .item-meta {
    opacity: 1
}

.forum-posts .meta-right item {
    margin-left: 15px
}

.forum-posts.detail {
    display: block
}

.forum-posts.detail .user-info+.badge-status {
    top: 46px
}

.forum-posts.detail .content {
    overflow: hidden
}

.forum-posts.detail .content .excerpt {
    display: block
}

.forum-posts.detail .content .topic-link {
    float: left
}

.forum-posts.detail .but-plate .icon {
    color: var(--focus-color)
}

.forum-posts.detail .action-meta {
    margin-right: -7px
}

.forum-posts.detail .but-plate {
    margin: 3px 0
}

.forum-posts.detail .action-meta .item {
    color: var(--muted-color);
    margin-left: 5px;
    padding: 2px 8px;
    font-size: 20px;
    transition: .15s;
    border-radius: 4px;
    display: inline-flex;
    align-items: center
}

.forum-posts.detail .action-meta .btn-score {
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    color: var(--muted-color);
    padding: 2px;
    border-radius: 4px
}

.forum-posts.detail .action-meta>.item.active {
    color: var(--focus-color)
}

.forum-posts.detail .action-meta text {
    font-size: 12px;
    margin-left: 2px;
    min-width: 14px;
    color: var(--muted-color);
    text-align: center
}

.forum-posts.detail .action-meta .score-btns {
    margin-right: 8px
}

.forum-posts.detail .action-meta .score-btns text {
    margin: 0
}

.forum-posts.detail .action-meta .btn-score.deduct {
    display: none
}

.forum-posts.detail .plate-null+.action-meta {
    flex: auto
}

.forum-posts.detail .plate-null+.action-meta .score-btns {
    border-radius: 100px;
    display: inline-flex;
    flex: 1
}

.forum-posts.detail .plate-null+.action-meta .btn-score.deduct {
    display: inline-flex
}

.forum-posts .hot-comment .avatar-img,
.forum-posts.detail .hot-comment .avatar-img {
    --this-size: 22px;
    margin-right: 6px
}

.forum-posts .hot-comment .comment-content img:not(.smilie-icon) {
    max-width: 200px;
    max-height: 200px;
    display: block;
    width: auto;
    height: auto
}

.forum-posts.alone {
    border: none !important;
    background: var(--main-bg-color);
    border-radius: var(--main-radius);
    margin-bottom: 10px;
    --this-padding: 20px 26px
}

.forum-posts.alone+.post_ajax_loader>.mb20>.mt20 {
    margin: 0
}

.forum-posts.alone+.ajax-pag,
.forum-posts.alone+.no-more,
.forum-posts.alone+.post_ajax_loader>.mb20 {
    border-top: none;
    padding: 20px 0 30px 0;
    margin: 0
}

.lists-imgs:not(.count-1) {
    display: flex;
    flex-wrap: wrap;
    --img-count: 4;
    max-width: 650px
}

.lists-imgs:not(.count-1)>span {
    flex: 0 0 calc(100% / var(--img-count) - 4px);
    padding-bottom: calc(100% / var(--img-count)/ 1 - 4px);
    margin: 2px;
    position: relative
}

.lists-imgs.count-2 {
    --img-count: 3
}

.lists-imgs:not(.count-1)>span>img {
    position: absolute
}

.lists-imgs.count-1 img {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto
}

.badg.but-plate,
.but.but-plate {
    font-size: 12px;
    border-radius: 100px;
    padding: 3px 10px;
    vertical-align: .1em
}

.score-btns {
    display: inline-flex;
    align-items: center
}

.btn-favorite.active {
    color: #ff7800
}

.score-btns .extra.active {
    color: #40a1ff
}

.score-btns .deduct.active {
    color: #ff556d
}

.hide-post {
    padding: 15px;
    color: var(--muted-2-color);
    font-size: 14px
}

.hot-comment {
    padding: 15px;
    position: relative
}

.forum-posts .content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px
}

.bbs-home-tab .tab-nav-theme li>a {
    font-size: 16px;
    color: var(--muted-2-color)
}

.bbs-home-tab .tab-nav-theme li.active a {
    color: var(--focus-color)
}

/* Forum article (single post view) */
.forum-article .article-header {
    margin-bottom: 15px;
    padding-bottom: 12px;
    margin-top: 5px;
    border-bottom: 1px solid var(--main-border-color)
}

.forum-article-meta,
.forum-article-meta a {
    color: var(--muted-2-color)
}

.forum-article-meta .item {
    margin-left: 18px
}

.forum-article-meta .item .icon {
    margin-right: 4px;
    font-size: 1.1em
}

.footer-actions {
    margin-right: -10px;
    margin-left: -10px
}

.footer-actions .item {
    display: flex;
    align-items: center;
    padding: 0 4px;
    margin: 0 4px;
    color: var(--muted-color)
}

.footer-actions .item>.icon {
    font-size: 20px;
    margin-right: 4px
}

.footer-actions .item text {
    font-size: 12px
}

.score-box .btn-score {
    font-size: 24px
}

.score-box .score-btns text {
    font-size: 12px;
    color: var(--muted-2-color);
    min-width: 30px;
    margin: 5px
}

/* Comment styles */
.bbs-commentlist .comment-filter {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--main-border-color);
    padding-top: 3px
}

.bbs-commentlist .comment-filter .comment-orderby {
    padding: 2px 10px
}

/* Sidebar overrides */
.sidebar .forum-posts {
    --this-padding: 10px 0
}

.sidebar .forum-posts.alone {
    --this-padding: 12px
}

.sidebar .forum-posts.detail .action-meta>.item {
    margin: 0
}

.sidebar .forum-posts.detail .plate-null+.action-meta .score-btns {
    background: var(--muted-border-color);
    flex: unset;
    margin-right: -35px
}

.sidebar .forum-posts.detail .user-info .avatar-img {
    --this-size: 38px;
    margin-right: 0
}

.sidebar .forum-posts.detail .forum-title,
.sidebar .forum-posts.detail .user-info .user-right,
.sidebar .forum-posts.detail .user-info+* {
    margin-top: 0
}

.sidebar .forum-posts.detail .user-info~* {
    margin-left: 0
}

.sidebar .forum-posts.detail .display-name {
    font-size: 14px
}

@media (min-width:641px) {
    .forum-posts.mini:hover {
        background: var(--muted-border-color)
    }

    .forum-posts.detail .avatar-img {
        --this-size: 55px;
        margin-right: 5px
    }

    .forum-posts.detail .user-info .user-right,
    .forum-posts.detail .user-info+* {
        margin-top: -12px
    }

    .forum-posts.detail .user-info~* {
        margin-left: 70px
    }

    .forum-posts.detail .user-info .display-name {
        font-size: 16px
    }

    .forum-posts.detail .action-meta .btn-score:hover,
    .forum-posts.detail .action-meta a.item:hover {
        background: var(--main-border-color)
    }
}

@media (max-width:640px) {
    .lists-imgs.count-3 {
        --img-count: 3
    }

    .lists-imgs.count-2,
    .lists-imgs.count-4 {
        --img-count: 2
    }

    .forum-posts.alone {
        --this-padding: 12px
    }

    .forum-posts.detail .action-meta>.item {
        margin: 0
    }

    .forum-posts.detail .action-meta>a.item:hover {
        background: 0 0
    }

    .forum-posts.detail .plate-null+.action-meta .score-btns {
        background: var(--muted-border-color);
        flex: unset;
        margin-right: -35px
    }

    .forum-posts.detail .plate-null+.action-meta .extra {
        padding: 4px 4px 4px 12px
    }

    .forum-posts.detail .plate-null+.action-meta .deduct {
        padding: 4px 12px 4px 4px
    }

    .forum-posts.mini {
        flex-direction: column
    }

    .forum-posts.mini .entry-info {
        max-width: 100%
    }

    .forum-posts.mini .item-meta {
        margin-top: 6px
    }

    .forum-posts .forum-title>a.text-ellipsis {
        line-height: 22px;
        font-size: 15px;
        display: block;
        overflow: unset;
        text-overflow: unset;
        white-space: unset;
        margin: 0
    }

    .forum-posts.mini .avatar-img {
        --this-size: 22px;
        margin-top: -3px
    }
}


/* --- Forum-posts-area flex overflow fix --- */
.forum-posts-area {
    min-width: 0;
    overflow: hidden;
}

/* Category plate tag — color override */
.but.but-plate {
    background: rgba(102, 126, 234, .1);
    color: var(--theme-color);
}

.but.but-plate:hover {
    background: rgba(102, 126, 234, .2);
}

/* Swiper bulletin */
.swiper-bulletin {
    border-radius: var(--main-radius);
    overflow: hidden;
    background: var(--main-bg-color);
}

.swiper-bulletin badge {
    vertical-align: middle;
}

/* FAB button */
.forum-fab {
    position: fixed;
    right: 24px;
    bottom: 90px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-color), #764ba2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, .4);
    z-index: 100;
    transition: all .3s;
    text-decoration: none;
}

.forum-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, .5);
    color: #fff;
}

.badg.badg-sm.moderator-bagd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
    padding: 0 6px;
    height: auto;
    line-height: 1.8;
    white-space: nowrap;
}

/* ========== Skeleton Loading Placeholders ========== */
.placeholder {
    background: var(--muted-border-color);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
    animation: placeholder-shimmer 1.5s infinite;
}

@keyframes placeholder-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.placeholder.t1 {
    width: 70%;
    height: 20px;
}

.placeholder.k1 {
    width: 50%;
    height: 14px;
}

.placeholder.k2 {
    width: 90%;
    height: 14px;
}

.placeholder.s1 {
    width: 80px;
    height: 14px;
}

/* ========== Responsive — custom layout only ========== */
@media(max-width:768px) {

    /* Hide left sidebar tabs on mobile */
    .forum-left-tabs {
        display: none;
    }

    /* Show mobile horizontal tabs */
    .forum-mobile-tabs {
        display: block;
    }

    /* CRITICAL: Stack forum layout vertically on mobile */
    .forum-layout {
        flex-direction: column;
    }

    .forum-posts-area {
        width: 100%;
        min-width: 0;
    }

    /* Post card mobile adjustments */
    .forum-posts {
        --this-padding: 12px 15px;
    }

    .forum-posts .avatar-img {
        --this-size: 38px;
    }

    .forum-posts.detail .forum-title {
        font-size: 15px;
    }

    .forum-posts .action-meta {
        gap: 10px;
    }

    .forum-posts .action-meta .item {
        font-size: 13px;
    }

    /* Image list mobile */
    .forum-posts .imgbox-container img {
        max-height: 300px;
    }

    /* Single post view mobile */
    .forum-article {
        padding: 15px !important;
    }

    .forum-article .forum-title {
        font-size: 18px !important;
    }

    .forum-article .content.entry-content {
        font-size: 14px !important;
    }

    /* Comment section mobile */
    #comments .box-body {
        padding: 15px;
    }

    /* Sidebar hidden on mobile */
    .sidebar.show-sidebar {
        display: none;
    }

    .forum-fab {
        right: 16px;
        bottom: 70px;
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    .forum-mobile-tabs .tab-nav-theme li a {
        padding: 8px 12px;
        font-size: 12px;
    }
}