* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(0deg, #1a1a1a 0%, #2a2a2a 100%);
    min-height: 100vh;
    justify-items: center;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 1000px;
    width: 100%;
}

.server-card {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 20px;
    padding: 30px 20px 20px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    backdrop-filter: blur(10px);
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 37px;
    color: #0a0404;

    margin-bottom: 10px;
}

.ip {
    justify-content: center;
    text-align: center;
    color: #888;
    font-size: 18px;
    padding: 8px 15px;
    background: #333;
    border-radius: 30px;
    display: flex;
    font-family: monospace;
    transition: all 0.3s;
    max-width: 220px;
    margin: auto auto 10px auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.ip:hover {
    background: #3a3a3a;
    color: #4caf50;
}

.status-indicator {
    text-align: center;
    margin-bottom: 20px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 12px 40px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
}

.status-online {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid #4caf50;
    color: #4caf50;
}

.status-offline {
    background: rgba(244, 67, 54, 0.2);
    border: 2px solid #f44336;
    color: #f44336;
}

.status-checking {
    background: rgba(255, 152, 0, 0.2);
    border: 2px solid #ff9800;
    color: #ff9800;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

.dot-online {
    background: #4caf50;
    box-shadow: 0 0 15px #4caf50;
}

.dot-offline {
    background: #f44336;
    box-shadow: 0 0 15px #f44336;
}

.dot-checking {
    background: #ff9800;
    box-shadow: 0 0 15px #ff9800;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1.4);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.6);
    }

    100% {
        opacity: 1;
        transform: scale(1.4);
    }
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 15px;
}

.info-item {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #3a3a3a;
    transition: transform 0.2s;
}

.info-item:hover {
    transform: translateY(-5px);
    border-color: #4caf50;
}

.info-label {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.info-value {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
}

.info-value.small {
    font-size: 20px;
}

.players-section {
    background: #2a2a2a;
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #3a3a3a;
    margin-bottom: auto;
}

.players-title {
    font-size: 18px;
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.players-title span {
    color: #4caf50;
    font-weight: bold;
}

.players-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 50px;
}

.player-tag {
    background: #3a3a3a;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid #4a4a4a;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: fadeIn 0.3s;
}

.player-tag::before {
    content: "👤";
    color: #4caf50;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.no-players {
    color: #888;
    text-align: center;
    padding: 20px;
    font-style: italic;
    width: 100%;
}

.motd-section {
    background: #2a2a2a;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #3a3a3a;
    text-align: center;
}

.motd-text {
    color: #4caf50;
    font-size: 16px;
    word-break: break-word;
    text-align: left;
}

.refresh-btn {
    width: 100%;
    padding: 15px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.refresh-btn:hover:not(:disabled) {
    background: #45a049;
    transform: scale(1.02);
}

.refresh-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.last-update {
    color: #888;
    font-size: 14px;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 15px;
    padding: 5px;
    background: #2a2a2a;
    border-radius: 5px;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #4caf50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.version-badge {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

.error-message {
    color: #f44336;
    text-align: center;
    padding: 10px;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 5px;
    margin: 10px 0;
    font-size: 14px;
    display: none;
}

.error-message.show {
    display: block;
}

.server-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;
    border-radius: 10px;
    display: none;
}

.server-icon.show {
    display: block;
}


.actbutton {
    padding: 4px 4px;
    color: white;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    background: linear-gradient(45deg,
            #8198ff 20%,
            #68eca3 30% 50%,
            #45b7d1 60% 80%,
            #68eca3 90%);
    background-size: 300% 300%;
    animation: gradientMove 2s ease infinite;
    transition: transform 0.3s;
}

@keyframes gradientMove {
    0% {
        background-position: 0%;
    }

    50% {
        background-position: 100%;
    }

    100% {
        background-position: 0%;
    }
}

a.actbutton:hover {
    transform: translateY(-4px);
    box-shadow: 0px 5px 20px rgba(41, 226, 50, 0.527)
}

.main-mod {
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s;
}


.main-mod:hover {
    transform: translateY(-4px);
}

.main-mod.create:hover {
    box-shadow: 0 3px 7px rgb(146, 78, 0);
}

.main-mod.mekanism:hover {
    box-shadow: 0 3px 7px #2e4aa0;
}

.main-mod.IceAndFire:hover {
    box-shadow: 0 3px 7px #ac102f;
}

.main-mod.vampirism:hover {
    box-shadow: 0 3px 7px #490049;
}



.online-data {
    width: 48%;
    height: auto;

    background: #1f1f1f;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #3a3a3a;
    text-align: center;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 750px) {
    .online-data {
        width: 100%;
        height: auto;
    }
}


.grid1 {
    gap: 4%;
    display: flex;
    flex-wrap: wrap;
}

/* контейнер ровно 480x530 */
.slider {
    width: 48%;
    height: 530px;
    border-radius: 24px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
    /* запрет горизонтального скролла страницы */
    cursor: grab;
}

@media (max-width: 750px) {
    .slider {
        width: 100%;
        height: auto;
    }
}

.slider:active {
    cursor: grabbing;
}

/* лента с картинками */
.track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-out;
    will-change: transform;
}

.track img {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}