/* Discord sidebox — same module as play.ggwp.dk (sidebox_discord) */
.sidebox-discord {
    overflow: visible;
}

.sidebox-discord .sidebox-head {
    margin: 0;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.sidebox-discord .sidebox-body {
    padding: 0.75rem;
}

.sidebox-discord.card {
    display: block;
    min-height: 80px;
}

.widget-discord {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.widget-discord--stack {
    gap: 0.5rem;
}

.widget-discord img {
    width: 100% !important;
    max-width: 350px;
    height: auto;
    border-radius: 4px;
}

.discord-widget-iframe-wrap {
    width: 100%;
    max-width: 350px;
    min-height: 320px;
    background: #2f3136;
    border-radius: 4px;
    overflow: hidden;
}

.widget-discord iframe {
    display: block;
    width: 100%;
    max-width: 350px;
    min-height: 320px;
    height: 420px;
    border: 0;
    border-radius: 4px;
}

.discord-widget-join-always {
    margin-top: 0.65rem;
}

.discord-widget-hint {
    margin: 0.5rem 0 0;
    font-size: 0.72rem;
    line-height: 1.35;
    text-align: center;
    max-width: 350px;
}

.widget-discord .discord-widget-fallback {
    display: inline-block;
    width: 100%;
    max-width: 350px;
    padding: 0.75rem 1rem;
    background: #5865f2;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
}

.widget-discord .discord-widget-link {
    display: block;
    text-decoration: none;
}

.discord-widget-json {
    width: 100%;
    max-width: 350px;
    padding: 0.5rem 0;
}

.discord-widget-json-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.discord-widget-json-name {
    font-weight: 600;
    color: inherit;
}

.discord-widget-json-online {
    font-size: 0.875rem;
    opacity: 0.85;
}

.discord-widget-json-members {
    list-style: none;
    margin: 0 0 0.75rem 0;
    padding: 0;
    font-size: 0.875rem;
}

.discord-widget-json-member {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0;
}

.discord-widget-json-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.discord-widget-json-status-online {
    background: #43b581;
}

.discord-widget-json-status-idle {
    background: #faa61a;
}

.discord-widget-json-status-dnd {
    background: #f04747;
}

.discord-widget-json-status-offline {
    background: #747f8d;
}

.discord-widget-json-join {
    display: inline-block;
    width: 100%;
    padding: 0.5rem 1rem;
    background: #5865f2;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s;
    box-sizing: border-box;
}

.discord-widget-json-join:hover {
    background: #4752c4;
    color: #fff;
}

.discord-widget-strip {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.discord-widget-strip .sidebox-discord {
    width: 100%;
    max-width: 380px;
}

@media (max-width: 480px) {
    .widget-discord iframe {
        min-height: 360px;
        height: 420px;
    }
}
