* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #000000;
    color: white;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.server-ip {
    cursor: pointer;
}

#particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

#servery-sekce {
    padding: 110px 20px 80px;
}

#toast {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #111;
    border: 1px solid #ff1a1a;
    padding: 14px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s ease;
    box-shadow: 0 20px 50px rgba(255,0,0,0.4);
    z-index: 9999;
}

#toast.show {
    opacity: 1;
    transform: translateY(0);
}

.server-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 50px;
    letter-spacing: 3px;
}

.server-title::before,
.server-title::after {
    content: "";
    height: 2px;
    width: 80px;
    background: linear-gradient(90deg, transparent, #ff1a1a);
}

.server-title::after {
    background: linear-gradient(90deg, #ff1a1a, transparent);
}

.server-list {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.server-card {
    position: relative;
    height: 95px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: #111;
    transition: 0.2s ease;
}

.server-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--map);
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}

.server-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.9) 0%,
        rgba(0,0,0,0.85) 20%,
        rgba(0,0,0,0.3) 40%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.3) 60%,
        rgba(0,0,0,0.85) 80%,
        rgba(0,0,0,0.9) 100%
    );
}

.server-card:hover {
    border-color: rgba(255, 60, 60, 0.5);
    transform: translateY(-2px);
}

.server-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.server-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.play-button {
    width: 34px;
    height: 34px;
    background: #ff1a1a;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

.play-button:hover {
    background: #ff3c3c;
}

.server-name {
    font-size: 1rem;
    font-weight: 700;
}

.server-map {
    font-size: 0.75rem;
    opacity: 0.65;
}

.server-info {
    text-align: right;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.server-ip {
    opacity: 0.8;
    cursor: pointer;
    transition: 0.15s;
}

.server-ip:hover {
    color: #ff4040;
}

.server-players {
    font-weight: 600;
}

.server-loading {
    text-align:center;
    padding:40px;
    opacity:0.7;
}

.spinner {
    width:40px;
    height:40px;
    border:4px solid rgba(255,255,255,0.1);
    border-top:4px solid #ff1a1a;
    border-radius:50%;
    animation:spin 1s linear infinite;
    margin:0 auto 15px;
}

@keyframes spin {
    to { transform:rotate(360deg); }
}