* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: radial-gradient(circle at top, #1f2937 0, #020617 55%, #000 100%);
    color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card {
    width: 100%;
    max-width: 720px;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 22px 22px 20px;
    backdrop-filter: blur(18px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
}

.title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.title-main {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #e5e7eb;
}

.title-sub {
    font-size: 12px;
    color: #9ca3af;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.15);
    border: 1px solid rgba(45, 212, 191, 0.35);
    font-size: 12px;
    color: #a5f3fc;
    white-space: nowrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3);
}

.status-pill.offline {
    background: rgba(127, 29, 29, 0.3);
    border-color: rgba(248, 113, 113, 0.5);
    color: #fecaca;
}

.status-pill.offline .status-dot {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.35);
}

.grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 16px;
    height: 500px;
}

.grid-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.grid-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.info-block {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 14px;
    border: 1px solid rgba(31, 41, 55, 0.8);
    padding: 14px 14px 12px;
}

.info-block-full {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.info-block-full .info-badge {
    flex-shrink: 0;
}

.info-block-full .player-list-container {
    flex: 1;
    overflow: hidden;
}

.info-badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    margin-bottom: 10px;
}

.server-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #e5e7eb;
}

.server-map {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.players-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.players-count {
    font-size: 13px;
    color: #e5e7eb;
}

.progress-bar {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.9);
    margin-left: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #a3e635);
    transition: width 0.3s ease;
}

.addr-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.addr-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.addr-input {
    flex: 1;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 13px;
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.addr-input::selection {
    background: rgba(56, 189, 248, 0.35);
}

.btn {
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.18s ease-out;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #022c22;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(34, 197, 94, 0.45);
    filter: brightness(1.03);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(55, 65, 81, 0.9);
    color: #e5e7eb;
}

.btn-secondary:hover {
    border-color: rgba(148, 163, 184, 0.9);
    background: rgba(15, 23, 42, 1);
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hint {
    margin-top: 10px;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.6;
}

.footer {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed rgba(55, 65, 81, 0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #6b7280;
}

.refresh {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #9ca3af;
}

.refresh:hover {
    color: #e5e7eb;
}

.badge-small {
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(55, 65, 81, 0.9);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.error-text {
    margin-top: 6px;
    font-size: 11px;
    color: #fecaca;
}

.player-list-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.player-list-container::-webkit-scrollbar {
    width: 6px;
}

.player-list-container::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.5);
    border-radius: 999px;
}

.player-list-container::-webkit-scrollbar-thumb {
    background: rgba(107, 114, 128, 0.6);
    border-radius: 999px;
}

.player-list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 114, 128, 0.8);
}

.player-header {
    display: grid;
    grid-template-columns: 1fr 50px 70px;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(31, 41, 55, 0.6);
    border-radius: 8px;
    border-bottom: 1px solid rgba(55, 65, 81, 0.7);
    margin-bottom: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    font-weight: 600;
    position: sticky;
    top: 0;
    flex-shrink: 0;
}

.player-row {
    display: grid;
    grid-template-columns: 1fr 50px 70px;
    gap: 8px;
    padding: 10px 10px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(31, 41, 55, 0.7);
    transition: background 0.15s ease;
    align-items: center;
    min-height: 0;
}

.player-row:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(55, 65, 81, 0.9);
}

.player-name {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.player-score {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fbbf24;
    font-weight: 600;
}

.player-time {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #a5f3fc;
    font-family: 'Monaco', 'Courier New', monospace;
    white-space: nowrap;
}

.player-empty {
    padding: 20px 8px;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
}

@media (max-width: 640px) {
    .card {
        padding: 18px 16px 16px;
    }

    .grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .grid-left,
    .grid-right {
        gap: 12px;
    }

    .player-header,
    .player-row {
        grid-template-columns: 1fr 40px 60px;
        gap: 6px;
        padding: 8px;
    }
}


