/* Server connect bar — isolated from main.css global rules */
.server-bar {
    background: #0a0a0a;
    border-top: 1px solid #1a1a1a;
    padding: 10px 16px;
    flex-shrink: 0;
}

.server-connect {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.server-connect-label {
    font-size: 10px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.server-connect-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.server-copy-full {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 320px;
    max-width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    background: #141414;
    color: #eee;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.server-copy-full:hover {
    background: #1e1e1e;
    border-color: #444;
}

.server-copy-full:active {
    transform: scale(0.99);
}

.server-copy-full .server-cmd {
    flex: 1;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.35;
    color: #fff;
    word-break: break-all;
    text-align: left;
}

.server-copy-full .server-copy-label {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 4px 8px;
}

.server-copy-full:hover .server-copy-label {
    color: #ccc;
    border-color: #555;
}

.server-copy-full.copied {
    border-color: #1e6b42;
    background: #0f2318;
}

.server-copy-full.copied .server-copy-label {
    color: #2ecc71;
    border-color: #2ecc71;
}

.server-play {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 18px;
    border-radius: 8px;
    background: var(--main-color, #111) !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: filter 0.15s;
}

.server-play:hover,
.server-play:focus-visible {
    color: #fff !important;
    background: var(--main-color, #111) !important;
    filter: brightness(1.3);
}

.server-cmd-link {
    background: #1a1a1a !important;
    border: 1px solid #333;
}

.server-cmd-link:hover,
.server-cmd-link:focus-visible {
    filter: none !important;
    background: #242424 !important;
}

/* Footer layout */
footer.footer-with-server {
    background: #0d0d0d;
    border-top: 1px solid #1a1a1a;
    color: #fff;
    flex-shrink: 0;
}

footer.footer-with-server .footer-grid {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 2fr) 1fr;
    align-items: center;
    gap: 10px 16px;
    width: 92%;
    max-width: 1200px;
    min-height: 72px;
    height: auto;
    margin: 0 auto;
    padding: 10px 0;
    overflow: visible;
}

footer.footer-with-server .footer-grid .info {
    justify-self: start;
}

footer.footer-with-server .footer-grid .server-connect {
    justify-self: center;
}

footer.footer-with-server .footer-grid .actions {
    justify-self: end;
}

@media (max-width: 900px) {
    footer.footer-with-server .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 8px;
        padding: 12px 0;
    }

    footer.footer-with-server .footer-grid .info,
    footer.footer-with-server .footer-grid .server-connect,
    footer.footer-with-server .footer-grid .actions {
        justify-self: center;
    }

    footer.footer-with-server .footer-grid .info {
        flex-direction: row;
        justify-content: center;
    }

    .server-connect-row {
        flex-direction: column;
    }

    .server-copy-full,
    .server-play {
        width: 100%;
    }

    .server-play {
        justify-content: center;
    }
}
