/*.discord-widget {
        width: 100%;
    max-width: 300px;
    background: rgba(12, 10, 11, 0.88);
    border: 1px solid rgba(160, 30, 35, 0.45);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    color: #eee;
    font-family: Arial, sans-serif;
    float: right;

}*/
.discord-widget-wrapper {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;

    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}



.discord-widget {
    width: 240px;
    max-width: 240px;

    background: rgba(12, 10, 11, 0.88);
    border: 1px solid rgba(160, 30, 35, 0.45);
    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);

    color: #eee;
    font-family: Arial, sans-serif;

    position: relative;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(15px);

    margin-right: 0px;

    order: 1;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}

.discord-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(35, 10, 12, 0.85);
    border-bottom: 1px solid rgba(160, 30, 35, 0.35);
}

.discord-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.discord-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #5865f2;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.discord-title-text {
    display: flex;
    flex-direction: column;
}

.discord-title-main {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.discord-title-sub {
    margin-top: 2px;
    font-size: 11px;
    color: #999;
}

.discord-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #7ee787;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.discord-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3fb950;
    box-shadow: 0 0 8px rgba(63, 185, 80, 0.8);
}

.discord-messages {
    height: 250px;
    overflow-y: auto;
    padding: 12px 14px;
    scroll-behavior: smooth;
}

.discord-messages::-webkit-scrollbar {
    width: 6px;
}

.discord-messages::-webkit-scrollbar-track {
    background: transparent;
}

.discord-messages::-webkit-scrollbar-thumb {
    background: rgba(150, 40, 45, 0.5);
    border-radius: 10px;
}

.discord-message {
    display: flex;
    gap: 10px;
    padding: 8px 5px;
    border-radius: 6px;
}

.discord-message:hover {
    background: rgba(255, 255, 255, 0.025);
}

.discord-avatar {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: #292929;
}

.discord-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #7c2025;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
}

.discord-message-body {
    min-width: 0;
    flex: 1;
}

.discord-message-top {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.discord-author {
    color: #fff;
    font-size: 13px;
    font-weight: bold;
}

.discord-time {
    color: #666;
    font-size: 10px;
}

.discord-content {
    margin-top: 3px;
    color: #c8c8c8;
    font-size: 13px;
    line-height: 1.45;
    /*white-space: pre-wrap;*/
    word-break: break-word;
}

.discord-content a {
    color: #7289da;
    text-decoration: none;
}

.discord-content a:hover {
    text-decoration: underline;
}

.discord-empty,
.discord-error,
.discord-loading {
    padding: 35px 15px;
    text-align: center;
    color: #777;
    font-size: 12px;
}

.discord-footer {
    padding: 11px 14px;
    border-top: 1px solid rgba(160, 30, 35, 0.3);
    background: rgba(20, 8, 9, 0.75);
}

.discord-join {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border-radius: 6px;
    background: #5865f2;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: 0.15s ease;
}

.discord-join:hover {
    background: #4752c4;
    transform: translateY(-1px);
}

@media (max-width: 600px) {

    .discord-widget {
        width: 280px;
        max-width: 280px;
    }

    .discord-messages {
        height: 280px;
    }

}

.discord-reply {
    display: flex;
    align-items: stretch;
    margin: 2px 0 6px 0;
    min-height: 20px;
    max-width: 100%;
}

.discord-reply-line {
    width: 2px;
    min-width: 2px;
    margin-left: 2px;
    margin-right: 8px;
    border-radius: 2px;
    background: #555;
}

.discord-reply-content {
    min-width: 0;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.35;
}

.discord-reply-author {
    color: #aaa;
    font-weight: bold;
    margin-bottom: 1px;
}

.discord-reply-text {
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-author {
    transition: color 0.15s ease;
}

.discord-message:hover .discord-author {
    filter: brightness(1.15);
}

/* =========================================================
   DISCORD HOVER
   ========================================================= */
/* Small button shown when collapsed */
.discord-toggle {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #5865f2;
    color: #fff;

    border-radius: 50%;
    cursor: pointer;

    font-size: 12px;
    font-weight: bold;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);

    transition:
        transform 0.2s ease,
        background 0.2s ease;

    flex-shrink: 0;

    order: 2;
}
/* Open when the actual RA button is hovered */
.discord-toggle:hover ~ .discord-widget {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}


/* Keep it open while the mouse is over the widget */
.discord-widget:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}


/* RA button hover */
.discord-toggle:hover {
    transform: scale(1.08);
    background: #4752c4;
}