#listener_badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0000; /* Notification red color */
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 15px;
    text-align: center;
    line-height: 1;
    font-weight: bold;
    border: 1px solid #fff;
}
.userlist {
    background: #000;
    border: 2px solid #0ff;
    border-radius: 4px;
    padding: 6px 16px;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.userlist .bcell {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0ff !important;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    gap: 12px;
    text-shadow: 0 0 10px #0ff;
}

.userlist .bcell i {
    color: #f0f;
    text-shadow: 0 0 10px #f0f;
    font-size: 12px;
}

.userlist .uline {
    width: 1px;
    height: 14px;
    background: linear-gradient(180deg, #0ff, #f0f);
    transform: rotate(15deg);
    opacity: 0.7;
}

.userlist .dot {
    width: 6px;
    height: 6px;
    background: #0f0;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    box-shadow: 0 0 10px #0f0;
}

.red_dot {
    background: #ff0000 !important;
}

.rotate {
    display: inline-block;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.wave-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.wave-bars span {
    width: 2px;
    background: #0f0;
    box-shadow: 0 0 6px #0f0;
    animation: wave 1s ease-in-out infinite;
}

.wave-bars span:nth-child(1) {
    height: 4px;
    animation-delay: 0s;
}

.wave-bars span:nth-child(2) {
    height: 8px;
    animation-delay: 0.1s;
}

.wave-bars span:nth-child(3) {
    height: 6px;
    animation-delay: 0.2s;
}

.wave-bars span:nth-child(4) {
    height: 10px;
    animation-delay: 0.3s;
}

@keyframes wave {
    0%, 100% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(1.2);
        opacity: 1;
    }
}

.onair-tag {
    border-color: #ff0040;
}

.onair-tag .bcell {
    color: #ff2a60 !important;
    text-shadow: 0 0 10px #ff2a60;
}

.onair-tag .bcell i {
    color: #ff0040;
    text-shadow: 0 0 10px #ff0040;
}

.onair-tag .uline {
    background: linear-gradient(180deg, #ff0040, #ff8800);
}

.onair-tag .wave-bars span {
    background: #ff0040;
    box-shadow: 0 0 6px #ff0040;
}

.user-count-left {
    background: #0a0a0a;
    border: 1px solid #333;
    border-left: 3px solid #0ff;
    border-radius: 0 6px 6px 0;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 9px;
}

.user-count-left .bcell {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #aaa;
}

.user-count-left i {
    color: #0ff;
    font-size: 10px;
}

.user-count-left .divider {
    width: 1px;
    height: 10px;
    background: #444;
}

.user-count-left .ucount {
    background: #0ff;
    color: #000;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

.text_glow {
    box-shadow: inset 0 0 46px -5px #d742cb;
    border: 1px solid #6d0488 !important;
}

.topic_log {
    background: transparent;
}

.topic_box {
    position: relative;
    background: #fff;
    border-radius: 4px;
    border: 1px solid rgba(34,36,38,.15);
    padding: 35px 15px 15px 15px;
    box-shadow: 0 2px 4px rgba(34,36,38,.12), 0 4px 12px rgba(34,36,38,.15);
}

.topic_label {
    position: absolute;
    top: 10px;
    left: -12px;
    background: #000000;
    color: #fff;
    font-weight: bold;
    padding: 6px 13px 6px 20px;
    border-radius: 0 4px 4px 0;
}

.topic_label:after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    border-style: solid;
    border-width: 0 12px 12px 0;
    border-color: transparent rgb(0, 0, 0) transparent transparent;
}

.topic_right {
    float: right;
    text-align: center;
    margin-top: -10px;
}

.topic_log_icon {
    padding: 10px;
    cursor: pointer;
}

.topic_log_content {
    font-weight: bold;
    color: #000000;
    margin-top: 16px;
    margin-left: 2px;
    clear: both;
}

@keyframes pcrclr_animate {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100% 0;
    }
}

@-webkit-keyframes pcrclr_animate {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100% 0;
    }
}

.anim {
    animation-duration: 2.5s;
    animation-fill-mode: both;
    animation-iteration-count: infinite;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }

    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

.shake {
    animation-name: shake;
}

@keyframes lightSpeedIn {
    0% {
        transform: translateX(100%) skewX(-30deg);
        opacity: 0;
    }

    60% {
        transform: translateX(-20%) skewX(30deg);
        opacity: 1;
    }

    80% {
        transform: translateX(0%) skewX(-15deg);
        opacity: 1;
    }

    100% {
        transform: translateX(0%) skewX(0deg);
        opacity: 1;
    }
}

.lightSpeedIn {
    animation-name: lightSpeedIn;
    animation-timing-function: ease-out;
}

@keyframes wobble {
    0% {
        transform: translateX(0%);
    }

    15% {
        transform: translateX(-25%) rotate(-5deg);
    }

    30% {
        transform: translateX(20%) rotate(3deg);
    }

    45% {
        transform: translateX(-15%) rotate(-3deg);
    }

    60% {
        transform: translateX(10%) rotate(2deg);
    }

    75% {
        transform: translateX(-5%) rotate(-1deg);
    }

    100% {
        transform: translateX(0%);
    }
}

.wobble {
    animation-name: wobble;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation-name: pulse;
    animation-duration: 1s;
}

.announce-top {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 4px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.announce-top marquee {
    font-size: 12px;
    font-weight: 600;
    color: #222;
}

.top-icon {
    color: #ff4444;
    margin-right: 8px;
}

.top-text {
    color: #333;
    margin: 0 10px;
    letter-spacing: 0.3px;
}

.top-dot {
    color: #999;
    font-size: 8px;
    vertical-align: middle;
}
.az_custom_rank img,
.user_item_icon.icrank img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
    display: block;
}

.az_custom_rank {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.user_item_icon.icrank {
    width: 22px;
    height: 22px;
 #   display: flex;
 #   align-items: center;
 #   justify-content: center;
}
/* ===== RichText Addon ===== */

/* â”€â”€ Emoji autocomplete popup â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#rt_emoji_popup {
    position: fixed;
    z-index: 99999;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    padding: 4px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px;
    max-width: 220px;
    max-height: 160px;
    overflow-y: auto;
}
.rt_emoji_item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.1s;
}
.rt_emo_prev {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
}
.rt_emo_uni {
    font-size: 20px;
    line-height: 1;
    width: 26px;
    text-align: center;
    flex-shrink: 0;
}
.rt_emoji_item:hover,
.rt_emoji_sel {
    background: rgba(108,99,255,0.18);
}
.rt_emoji_sel {
    background: rgba(108,99,255,0.25) !important;
}

/* Toolbar bar â€” horizontally scrollable so all buttons stay on one row */
.rt_bar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
    padding: 2px 4px;
    gap: 1px;
    border-bottom: 1px solid rgba(128,128,128,0.15);
    position: relative;
    min-height: 36px;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.rt_bar::-webkit-scrollbar { display: none; } /* Chrome/Safari */

/* Individual buttons */
.rt_btn {
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    padding: 0;
    min-width: 34px;
    height: 32px;
    font-size: 12px;
    line-height: 1;
    color: inherit;
    opacity: 0.7;
    transition: background 0.12s, opacity 0.12s;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.rt_btn:hover,
.rt_btn:focus { opacity: 1; background: rgba(128,128,128,0.15); outline: none; }
.rt_btn.rt_on {
    opacity: 1;
    background: rgba(128,128,128,0.22);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.12);
}
.rt_btn b         { font-weight: 700; font-size: 13px; }
.rt_btn .italic-i { font-style: italic; font-size: 13px; }
.rt_btn u         { text-decoration: underline; font-size: 13px; }
.rt_btn s         { text-decoration: line-through; font-size: 13px; }

/* Separator */
.rt_sep {
    width: 1px;
    height: 16px;
    background: rgba(128,128,128,0.3);
    margin: 0 2px;
    flex-shrink: 0;
}

/* Contenteditable editor */
.rt_editor {
    flex: 1;
    min-height: 22px;
    max-height: 80px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    outline: none;
    font-size: 14px;
    line-height: 1.5;
    padding: 1px 4px;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    -webkit-text-size-adjust: 100%;
}
.rt_editor[contenteditable="true"] {
    -webkit-user-modify: read-write;
}
.rt_editor:empty::before {
    content: attr(data-ph);
    color: rgba(128,128,128,0.55);
    pointer-events: none;
    display: block;
}
.rt_editor h3         { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.4; }
.rt_editor blockquote {
    margin: 0 0 0 6px;
    padding-left: 8px;
    border-left: 3px solid rgba(128,128,128,0.4);
    font-style: italic;
    opacity: 0.85;
}

/* Color swatches */
.rt_swatches {
    display: flex;
    gap: 5px;
    padding: 6px 8px;
    flex-wrap: wrap;
}
.rt_swatch {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(128,128,128,0.3);
    transition: transform 0.1s;
    font-size: 11px;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.rt_swatch:hover,
.rt_swatch:active { transform: scale(1.2); border-color: rgba(128,128,128,0.6); }

/* Floating picker â€” position is set via JS (position:fixed, top/left) */
#rt_floating_picker {
    position: fixed;
    z-index: 99999;
    border-radius: 6px;
    box-shadow: 0 -3px 12px rgba(0,0,0,0.2);
    border: 1px solid rgba(128,128,128,0.2);
    min-width: 190px;
}

/* Rendered chat message styles */
.chat_log b, .chat_log strong { font-weight: 700; }
.chat_log i, .chat_log em     { font-style: italic; }
.chat_log u                   { text-decoration: underline; }
.chat_log s, .chat_log strike, .chat_log del { text-decoration: line-through; }
.chat_log h3       { margin: 2px 0; font-size: 15px; font-weight: 700; }
.chat_log blockquote {
    margin: 2px 0 2px 6px;
    padding-left: 8px;
    border-left: 3px solid rgba(128,128,128,0.4);
    font-style: italic;
    opacity: 0.85;
}
.chat_log a[target="_blank"] { text-decoration: underline; }
.chat_log span[style]        { display: inline; }

/* Private message rendered styles */
.privmsg b, .privmsg strong { font-weight: 700; }
.privmsg i, .privmsg em     { font-style: italic; }
.privmsg u                  { text-decoration: underline; }
.privmsg s, .privmsg strike, .privmsg del { text-decoration: line-through; }
.privmsg h3       { margin: 2px 0; font-size: 15px; font-weight: 700; }
.privmsg blockquote {
    margin: 2px 0 2px 6px;
    padding-left: 8px;
    border-left: 3px solid rgba(128,128,128,0.4);
    font-style: italic;
    opacity: 0.85;
}
.privmsg span[style] { display: inline; }

/* Boxed private panel: reduce pcontent height to make room for toolbar */
.pboxed .pcontent { height: calc(310px - 36px) !important; }

/* ---- Mobile (â‰¤ 768px) ---- */
@media screen and (max-width: 768px) {
    .rt_btn  { min-width: 36px; height: 34px; font-size: 13px; }
    .rt_swatch { width: 26px; height: 26px; }
    #rt_floating_picker { min-width: 160px; }
    .rt_editor { max-height: 60px; }
    /* Boxed mode toolbar is 34px on mobile */
    .pboxed .pcontent { height: calc(310px - 34px) !important; }
}
.az_level_badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    color: #fff;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 20px;
    line-height: 1;
    
    /* Premium look */
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
}